From 433813106220cbd9b219c8da596671b7dc694c93 Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Wed, 10 May 2023 20:21:49 +0200 Subject: [PATCH] Fixing sitemap urls. --- lib/BurguillosInfo/Controller/Sitemap.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/BurguillosInfo/Controller/Sitemap.pm b/lib/BurguillosInfo/Controller/Sitemap.pm index 569b19d..9a364ac 100644 --- a/lib/BurguillosInfo/Controller/Sitemap.pm +++ b/lib/BurguillosInfo/Controller/Sitemap.pm @@ -83,7 +83,7 @@ sub _generate_url_for_post ( $self, $post ) { my $final_date_last_modification_post = _compare_dates_return_most_recent( $date, $date_last_modification_post ); my $base_url = $self->config('base_url'); - my $url_resource = "$base_url/@{[$post->{slug}]}"; + my $url_resource = "$base_url/posts/@{[$post->{slug}]}"; my $last_modification_tag = Mojo::DOM->new_tag( lastmod => $final_date_last_modification_post ); my $location_tag = Mojo::DOM->new_tag( loc => $url_resource );