From 6755a969ce3740de799d1f9ddf7326ebeff43189 Mon Sep 17 00:00:00 2001 From: Philipp Sauer Date: Wed, 11 Sep 2024 18:43:43 +0200 Subject: [PATCH] fix: decode search urls to avoid double encoding in canonical links --- src/app/extensions/seo/store/seo/seo.effects.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/extensions/seo/store/seo/seo.effects.ts b/src/app/extensions/seo/store/seo/seo.effects.ts index 4648f0ecf4..562e2dd31b 100644 --- a/src/app/extensions/seo/store/seo/seo.effects.ts +++ b/src/app/extensions/seo/store/seo/seo.effects.ts @@ -72,6 +72,11 @@ export class SeoEffects { this.categoryPage$.pipe( map((category: CategoryView) => this.baseURL + generateCategoryUrl(category).substring(1)) ), + // SEARCH RESULT PAGE + this.store.pipe( + ofUrl(/^\/search.*/), + map(() => decodeURI(this.doc.URL)) + ), // DEFAULT this.appRef.isStable.pipe( whenTruthy(),