Repository navigation
[1.7.x] fix(backend): preserve redirect target through /accounts/login/ (#13279) - #13282
Closed
github-actions[bot] wants to merge 1 commit into
Closed
github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
AuthRequiredMiddleware redirects unauthenticated requests for server-rendered paths to /accounts/login/?next=<path>, but the account_login redirect view then bounced straight to the frontend root, dropping the target. Forward a safe relative 'next' parameter to the SPA's /logged-in page instead, where LoggedIn.tsx recovers it once the login flow completes. Absolute or protocol-relative targets are dropped to rule out open redirects. (cherry picked from commit 80ad822)
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Member
|
closed, pending further review of #13279 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
masterto1.7.x:Questions ?
Please refer to the Backport tool documentation