Skip to content

Redirect page slugs with spaces to underscore form#939

Draft
jage wants to merge 1 commit into
mainfrom
fix/54-space-slug-redirect
Draft

Redirect page slugs with spaces to underscore form#939
jage wants to merge 1 commit into
mainfrom
fix/54-space-slug-redirect

Conversation

@jage
Copy link
Copy Markdown
Member

@jage jage commented May 16, 2026

When visiting a slug containing a literal space (e.g. /Foo Bar, URL-encoded as /Foo%20Bar), 301-redirect to the canonical underscore slug so the browser address bar matches the stored slug. Improves SEO and avoids the previous 302 detour through /new/.

Fixes #54

@jage jage requested a review from dentarg May 16, 2026 16:19
When visiting a slug containing a literal space (e.g. /Foo Bar,
URL-encoded as /Foo%20Bar), 301-redirect to the canonical underscore
slug so the browser address bar matches the stored slug. Improves SEO
and avoids the previous 302 detour through /new/<slug>.

Fixes #54
@jage jage force-pushed the fix/54-space-slug-redirect branch from 2c66480 to 6419a8c Compare May 17, 2026 11:49
@jage jage marked this pull request as draft May 20, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redirect pages with space in the slug to the underscore variant

1 participant