Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Disable redirect for i18n #5910
@@ Coverage Diff @@ ## master #5910 +/- ## ========================================= Coverage ? 37.97% ========================================= Files ? 329 Lines ? 48405 Branches ? 0 ========================================= Hits ? 18382 Misses ? 27383 Partials ? 2640
So there's another option, which would mitigate other similar issues in future of sticking a handler before the the il8n handler which does a path.Clean() and redirects to the clean path if the path wasn't clean to begin with.
However this does solve the current problem, and it's not as if the lang query parameter can be used elsewhere - so I'm gonna approve.