-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable redirect for i18n #5910
Disable redirect for i18n #5910
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5910 +/- ##
=========================================
Coverage ? 37.97%
=========================================
Files ? 329
Lines ? 48405
Branches ? 0
=========================================
Hits ? 18382
Misses ? 27383
Partials ? 2640
Continue to review full report at Codecov.
|
Why change that to false? |
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. |
I don't think this is correct solution, we should do fix to upstream lib or move that middleware to gitea code |
@lafriks I think this is a temporary PR so that is able to be back port to release/v1.7 |
But this does not fix problem completely, problem that currently is solved could be solved also keeping redirect by changing few lines up AppSubURL to AppURL |
@lafriks that doesn't entirely work, as i18n library uses AppSubURL to set cookie path
|
That's shity :D |
@lafriks 😂 yup. |
As title