Skip to content

Commit

Permalink
Fix file uri() method
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Jun 14, 2024
1 parent 091aab0 commit b725772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/App/Aphra/File.pm
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ sub uri {
my $self = shift;

my $uri = $self->app->uri;
my $path = $self->destination_dir;
my $base = $self->app->site_vars->{base};
my $path = $self->output_name;
$path =~ s/^$base//;
$uri .= $path . $self->output_name;
$uri .= $path;
$uri =~ s/index\.html$//;

return URI->new($uri);
Expand Down

0 comments on commit b725772

Please sign in to comment.