codeant-ai-for-open-source[bot] commented on PR #35021:
URL: https://github.com/apache/superset/pull/35021#issuecomment-3985211555
## **Sequence Diagram**
External links in alert/report emails are rewritten to a redirect endpoint.
Internal links redirect immediately while external links display a safety
warning for user confirmation.
```mermaid
sequenceDiagram
participant EmailSys as Email System
participant User as User
participant Backend as Redirect Endpoint
participant WarningPage as Warning Page
EmailSys->>EmailSys: Generate email content<br/>Rewrite external links
to /redirect/?url=...
User->>Backend: Click link in email<br/>GET /redirect/?url=target
alt Internal URL (safe)
Backend-->>User: 302 Redirect to target
else External URL (needs confirmation)
Backend-->>WarningPage: Render warning page
WarningPage->>User: Display confirmation dialog<br/>with "Trust this
URL" option
User->>WarningPage: Click Continue
WarningPage-->>User: Navigate to external URL
end
```
---
*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]