From 27f2846221ec6afcef49bc1ffacaa6ea0a54685e Mon Sep 17 00:00:00 2001 From: VarunVAshrit Date: Fri, 20 Dec 2024 16:55:23 +0530 Subject: [PATCH] :bug:Filtering on magazine tags on the /no/magasin page --- web/templates/magazine/Magazineroom.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/templates/magazine/Magazineroom.tsx b/web/templates/magazine/Magazineroom.tsx index 71c9e6285..0ae2f9b64 100644 --- a/web/templates/magazine/Magazineroom.tsx +++ b/web/templates/magazine/Magazineroom.tsx @@ -58,11 +58,11 @@ const MagazineRoom = ({ pageData, slug }: MagazineIndexTemplateProps) => { if (tagValue === 'ALL') { delete router.query.filter router.push({ - pathname: parentSlug, + pathname: router.pathname, }) } else { router.push({ - pathname: parentSlug, + pathname: `${router.query.locale ? `/${router.query.locale}` : ''}${router.pathname}`, query: { tag: tagValue, },