Skip to content

Case insensitive routes? #10207

Answered by peter-hendy
perostlin asked this question in Q&A
Jun 21, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

I think it's even better to use the reroute universal hook

import type { Reroute } from '@sveltejs/kit';

export const reroute: Reroute = ({ url }) => {
	return url.pathname.toLowerCase();
};

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@perostlin
Comment options

@eltigerchino
Comment options

@peter-hendy
Comment options

Answer selected by perostlin
@perostlin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants