From da5dae198eb5bd2ed92d3defabbed33a3406ec1e Mon Sep 17 00:00:00 2001 From: Arnaud Levy <arnaud.levy@noesya.coop> Date: Fri, 14 Feb 2025 16:45:07 +0100 Subject: [PATCH] Fix #2717 (#2720) --- app/views/admin/application/categories/widget/_static.html.erb | 2 ++ .../websites/pages/static/_section_taxonomies.html.erb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/views/admin/application/categories/widget/_static.html.erb b/app/views/admin/application/categories/widget/_static.html.erb index da6b50e5c..07ac09cef 100644 --- a/app/views/admin/application/categories/widget/_static.html.erb +++ b/app/views/admin/application/categories/widget/_static.html.erb @@ -29,6 +29,7 @@ taxonomies: if free_categories_content.present? %> - name: "<%= t('category.title') %>" slug: "" + path: "" categories: <%= sanitize free_categories_content %> <% end %> @@ -47,6 +48,7 @@ taxonomies: if taxonomy_content.present? %> - name: "<%= prepare_text_for_static taxonomy_l10n.to_s %>" slug: "<%= hugo.slug %>" + path: "<%= hugo.path %>" categories: <%= sanitize taxonomy_content %> <% diff --git a/app/views/admin/communication/websites/pages/static/_section_taxonomies.html.erb b/app/views/admin/communication/websites/pages/static/_section_taxonomies.html.erb index c5c11416e..b48dbc0c6 100644 --- a/app/views/admin/communication/websites/pages/static/_section_taxonomies.html.erb +++ b/app/views/admin/communication/websites/pages/static/_section_taxonomies.html.erb @@ -15,6 +15,7 @@ section_taxonomies: <% if free_categories_content.present? %> - name: "<%= t('category.title') %>" slug: "" + path: "" categories: <%= sanitize free_categories_content %> <% end %> @@ -32,6 +33,7 @@ section_taxonomies: if taxonomy_content.present? %> - name: "<%= prepare_text_for_static taxonomy_l10n.to_s %>" slug: "<%= hugo.slug %>" + path: "<%= hugo.path %>" categories: <%= sanitize taxonomy_content %><% end -- GitLab