Skip to content

[1.7.x] fix(backend): preserve redirect target through /accounts/login/ (#13279) - #13282

Closed
github-actions[bot] wants to merge 1 commit into
1.7.xfrom
backport/1.7.x/pr-13279
Closed

github-actions[bot] wants to merge 1 commit into
1.7.xfrom
backport/1.7.x/pr-13279

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from master to 1.7.x:

Questions ?

Please refer to the Backport tool documentation

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)
@coderabbitai

coderabbitai Bot commented Nov 14, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 452f0759-2732-4a42-9a1a-02e806c54d80

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@SchrodingersGat
SchrodingersGat deleted the backport/1.7.x/pr-13279 branch November 14, 2026 11:47
@SchrodingersGat

Copy link
Copy Markdown
Member

closed, pending further review of #13279

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants