From 02fe0805ae3d85a845d9f43c947812f8350c85fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Gigandet?= Date: Thu, 6 Oct 2022 12:34:40 +0200 Subject: [PATCH] fix #7434 - user menu links --- lib/ProductOpener/Display.pm | 5 +++++ templates/web/common/site_layout.tt.html | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/ProductOpener/Display.pm b/lib/ProductOpener/Display.pm index 2ae6825580aa2..729ffa6a01e2f 100644 --- a/lib/ProductOpener/Display.pm +++ b/lib/ProductOpener/Display.pm @@ -405,6 +405,11 @@ sub process_template($template_filename, $template_data_ref, $result_content_ref $template_data_ref->{product_action_url} = \&product_action_url; $template_data_ref->{product_name_brand_quantity} = \&product_name_brand_quantity; + # Return a link to one taxonomy entry in the target language + $template_data_ref->{canonicalize_taxonomy_tag_link} = sub ($tagtype, $tag) { + return canonicalize_taxonomy_tag_link($lc, $tagtype, $tag); + }; + # Display one taxonomy entry in the target language $template_data_ref->{display_taxonomy_tag} = sub ($tagtype, $tag) { return display_taxonomy_tag($lc, $tagtype, $tag); diff --git a/templates/web/common/site_layout.tt.html b/templates/web/common/site_layout.tt.html index 54988ba30540a..dc7d07c6726f1 100755 --- a/templates/web/common/site_layout.tt.html +++ b/templates/web/common/site_layout.tt.html @@ -109,12 +109,12 @@ [% user.name %]