Repository navigation
fix: Include app_root in next param - #37942
Conversation
Code Review Agent Run #1dd6f7Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Sequence DiagramShows the change where redirect_to_login prepends the application's SCRIPT_NAME (app_root) to the "next" query parameter so post-login redirects include the subdirectory prefix. sequenceDiagram
participant Browser
participant Backend
participant AuthLogin
Browser->>Backend: Request protected page (PATH_INFO, SCRIPT_NAME present)
Backend->>Backend: Build next target = request.script_root + request.path/full_path
Backend->>AuthLogin: Redirect to login URL with ?next=/app_root/...
AuthLogin-->>Browser: 302 Location: /login?next=/app_root/...
Generated by CodeAnt AI |
5959078 to
239b91f
Compare
Code Review Agent Run #308305Actionable Suggestions - 0Additional Suggestions - 1
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Antonio-RiveroMartnez
left a comment
There was a problem hiding this comment.
lgtm, this would be addressing a gap when using SUPERSET_APP_ROOT
|
6.0.0 had a gap in path mentioned here #37518 |
|
@dr29bart did you file that as new bug? It seems significant and I'm not confident people will see it here as a comment on an already-merged PR. |

SUMMARY
When logging in, the URL includes a
next=param that determines where users should be redirected to. This param was not including theapp_rootvalue, causing 404 errors.I thought about fixing this in the backend (adding it if missing while doing the redirect) but I think it would require overriding a FAB method, so I think it's a good compromise. Happy to revisit if needed.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before
Users are redirected to a URL without the
app_rootvalue after logging in, causing a 404 error.After
The
next=param includes theapp_rootvalue so the redirect works properly.TESTING INSTRUCTIONS
Added integration tests. For manual testing, set a value for
SUPERSET_APP_ROOTand check that thenext=param during login works properly.ADDITIONAL INFORMATION