Trailing slashes became significant and my project doesn’t work anymore #2623
Unanswered
strowbeary
asked this question in
Questions
Replies: 1 comment 6 replies
-
This isn't a bug, but we have changed the way route paths mount and match on master to be more consistent, precise, and ultimately correct. See #2533 (comment) for how mount points and route paths interact. The gist is that if you want a PS: I am very worried about the breakage this week cause and am exploring a manner in which we can introduce this change in such a way that it can be adopted piecemeal. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello !
I’m using the master branch and have bugs with the way trailing slashes are handled when rocket try to find the route that match with the request uri.
It's a problem I didn't have before with the rc.3 and I'm worried for the next release to introduce bugs in a lot projects using rocket.
Is there any tips to adapt actual code to the new matching conditions ?
For example my homepag, defined as
#[get("/")]
and mounted with/org/premiere
prefix, will only match when the request uri is/org/premiere/
and not/org/premiere
like before.Beta Was this translation helpful? Give feedback.
All reactions