Skip to content
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

Fix redirection loop #5143

Merged
merged 3 commits into from
Oct 27, 2023
Merged

Fix redirection loop #5143

merged 3 commits into from
Oct 27, 2023

Conversation

nilmerg
Copy link
Member

@nilmerg nilmerg commented Oct 26, 2023

fixes #5133

@nilmerg nilmerg added bug Something isn't working area/javascript Affects the javascript framework labels Oct 26, 2023
@nilmerg nilmerg added this to the 2.12.1 milestone Oct 26, 2023
@nilmerg nilmerg self-assigned this Oct 26, 2023
@cla-bot cla-bot bot added the cla/signed label Oct 26, 2023
@nilmerg nilmerg force-pushed the fix/redirection-loop-5133 branch from 220ead4 to 81a2c75 Compare October 26, 2023 11:18
A redirect caused by a form submit is **never** an automatic submit.
Unless I'm missing something here. There is one way this may be true,
as ipl forms without a submit button are indeed successful due to a
autosubmit element, but they don't redirect by default. So if the
controller redirects in such a case, the form should have a submit
button, I guess..

Anyway, this is necessary due to the previous commit as this may
otherwise cause form submits, that re-render layout during a redirect,
are considered being auto submitted. (Such as the login form)
In case of a `__SELF__` redirect, the client should still have
the parameter in the location and its preserved this way then.
@nilmerg nilmerg force-pushed the fix/redirection-loop-5133 branch from 81a2c75 to a2c143d Compare October 27, 2023 08:15
@nilmerg nilmerg merged commit a1cd968 into main Oct 27, 2023
12 checks passed
@nilmerg nilmerg deleted the fix/redirection-loop-5133 branch October 27, 2023 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/javascript Affects the javascript framework bug Something isn't working cla/signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Login Redirect Loop
1 participant