Replies: 1 comment 4 replies
-
Typically if I want a trailing slash, I'll create an index route. So:
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an app built with Django. Django is popular webframework for Python, which recommends trailing slash as default for its URLs. Also, Django comes with
APPEND_SLASH
feature where if URL without trailing slash fails to match any routes, Django will append slash to the URL and attempt to see if it then matches any route. If it does, Django will return a redirect for new, valid URL:This behavior is default for Django and thus, it's dominant in Django world.
Everywhere in Remix I see that default is no trailing slash, but I've couldn't find anything on easy way to have it the opposite. In Next.js there's
trailingSlash
option which description seems to be exactly what I need, but I would like to use Remix in my project.Beta Was this translation helpful? Give feedback.
All reactions