Skip to content

Commit

Permalink
Merge pull request #923 from Sitecore/issue/escape-forward-slash
Browse files Browse the repository at this point in the history
Fix forward slash error in changelog URLs
  • Loading branch information
markvanaalst authored Nov 14, 2024
2 parents dcf97e4 + 07d6fe8 commit e2b52c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils/stringUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function slugify(text: string | null | undefined): string {

const slug = encodeURIComponent(text);

return slug.toLowerCase().replace(/%20/g, '-');
return slug.toLowerCase().replace(/%20/g, '-').replace(/%2f/g, '-');
}

export function unslugify(text: string): string {
Expand Down

0 comments on commit e2b52c5

Please sign in to comment.