-
Notifications
You must be signed in to change notification settings - Fork 42
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
Redirect loop on /users/edit[/] #10240
Comments
One way to prevent this behaviour would be to have exclusions for adding slashes. |
Or another way would be to add a slash on the amo-server side. Might mean we'd need to change the redirect endpoint for server logins to avoid an unnecessary 301. |
We could also put some middleware right at the front of the chain that responds with 404s to known addons-server URLs. However, this could be a little confusing and won't work for when someone is loading pages on the client. |
QA: we'd love to cherry-pick this patch into this week's tag, so if you could test this and the URLs it should cover ( |
Verified this on AMO-dev FF52(Win 7) while following the first 3 steps (Login and click my profile->click edit profile->click "view mobile site" in the footer) and obtained the following results:
Not sure if these scenarios should be taken into consideration. |
I think there's more scenarios here that aren't working well with the fallback mechanism which are going to cause requests to be sent to the wrong place. E.g: If we fallback to the addons-server site and then that page does XHR it will get routed to mobile pages. |
I'm talking to ops about making a change around the fallback to iron out these problems by using an explicit set of routes that we know the mobile app should respond to. |
Our routes are much smaller and easier to grok as well. That seems like a better plan 👍 |
Describe the problem and steps to reproduce it:
From https://github.com/mozilla/addons-frontend/issues/2029#issuecomment-285452339
Whilst the fxa config has been updated to fix the redirection post-registration the redirect loop still exists.
What happened?
A redirect loop
What did you expect to happen?
Fallback to /users/edit (we could also not show the "View mobile site" link on this page)
Longer term this will be fixed by added pages for these views in the new mobile site.
The text was updated successfully, but these errors were encountered: