# HG changeset patch # User Thierry Florac # Date 1547025516 -3600 # Node ID a9ecbf6ad7eddf78db29a7d6958e08114d80256c # Parent 5ca9b0d569a56231ba8e66764910a3adde7f9b2e Encode "+" characters in sitemap URLs diff -r 5ca9b0d569a5 -r a9ecbf6ad7ed src/pyams_default_theme/features/sitemap/templates/root-sitemap.pt --- a/src/pyams_default_theme/features/sitemap/templates/root-sitemap.pt Wed Jan 09 10:18:00 2019 +0100 +++ b/src/pyams_default_theme/features/sitemap/templates/root-sitemap.pt Wed Jan 09 10:18:36 2019 +0100 @@ -2,7 +2,7 @@ - ${tales:absolute_url(source)}/sitemap.xml + ${source_url.replace('+', '%2B')}/sitemap.xml ${ts} diff -r 5ca9b0d569a5 -r a9ecbf6ad7ed src/pyams_default_theme/features/sitemap/templates/tool-sitemap.pt --- a/src/pyams_default_theme/features/sitemap/templates/tool-sitemap.pt Wed Jan 09 10:18:00 2019 +0100 +++ b/src/pyams_default_theme/features/sitemap/templates/tool-sitemap.pt Wed Jan 09 10:18:36 2019 +0100 @@ -1,7 +1,7 @@ - ${url}?lang=${lang} + ${url.replace('+', '%2B')}?lang=${lang} ${tales:timestamp(content, 'iso')}