From b72577281ed4f81017496919630d2eec42098dd3 Mon Sep 17 00:00:00 2001 From: Dave Cross Date: Fri, 14 Jun 2024 16:20:53 +0100 Subject: [PATCH] Fix file uri() method --- lib/App/Aphra/File.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/App/Aphra/File.pm b/lib/App/Aphra/File.pm index 306f7ab..1acf884 100644 --- a/lib/App/Aphra/File.pm +++ b/lib/App/Aphra/File.pm @@ -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);