Skip to content

Commit

Permalink
fix: decode search urls to avoid double encoding in canonical links
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Sauer committed Sep 11, 2024
1 parent 76f9a25 commit 6755a96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/extensions/seo/store/seo/seo.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 6755a96

Please sign in to comment.