codeant-ai-for-open-source[bot] commented on PR #37942:
URL: https://github.com/apache/superset/pull/37942#issuecomment-3893288516

   ## **Sequence Diagram**
   
   Shows 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.
   
   ```mermaid
   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](https://codeant.ai)*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to