I have searched the existing issues and discussions.
Problem Description
Description
Currently, Open WebUI v0.6.1 strips out the target="_blank" attribute from HTML links, preventing external links from opening in new tabs. This is a common UX requirement, especially for documentation and reference links.
Use Cases
Documentation references
External resource links
Maintaining user context while accessing external content
Security Considerations
Can be implemented safely with proper sanitization rules
Should maintain existing XSS protections
Can be combined with CSP headers
Additional Context
This feature would align with web accessibility guidelines and common web development practices.
Desired Solution you'd like
Current Behavior
HTML target="_blank" attribute is stripped during rendering
External links open in the same tab, disrupting the user's workflow
Various workarounds (markdown syntax, JavaScript handlers) are also sanitized
Requested Behavior
Support target="_blank" attribute for external links
Allow users to configure whether external links should open in new tabs
Maintain security through existing rel="noopener noreferrer" attributes
Alternatives Considered
Various workarounds (markdown syntax, JavaScript handlers) are also sanitized
Additional Context
No response
Originally created by @shibinmatrix on GitHub (Apr 9, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12641
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
### Problem Description
## Description
Currently, Open WebUI v0.6.1 strips out the `target="_blank"` attribute from HTML links, preventing external links from opening in new tabs. This is a common UX requirement, especially for documentation and reference links.
## Use Cases
1. Documentation references
2. External resource links
3. Maintaining user context while accessing external content
## Security Considerations
- Can be implemented safely with proper sanitization rules
- Should maintain existing XSS protections
- Can be combined with CSP headers
## Additional Context
This feature would align with web accessibility guidelines and common web development practices.
### Desired Solution you'd like
## Current Behavior
- HTML `target="_blank"` attribute is stripped during rendering
- External links open in the same tab, disrupting the user's workflow
- Various workarounds (markdown syntax, JavaScript handlers) are also sanitized
## Requested Behavior
- Support `target="_blank"` attribute for external links
- Allow users to configure whether external links should open in new tabs
- Maintain security through existing `rel="noopener noreferrer"` attributes
### Alternatives Considered
Various workarounds (markdown syntax, JavaScript handlers) are also sanitized
### Additional Context
_No response_
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @shibinmatrix on GitHub (Apr 9, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12641
Check Existing Issues
Problem Description
Description
Currently, Open WebUI v0.6.1 strips out the
target="_blank"attribute from HTML links, preventing external links from opening in new tabs. This is a common UX requirement, especially for documentation and reference links.Use Cases
Security Considerations
Additional Context
This feature would align with web accessibility guidelines and common web development practices.
Desired Solution you'd like
Current Behavior
target="_blank"attribute is stripped during renderingRequested Behavior
target="_blank"attribute for external linksrel="noopener noreferrer"attributesAlternatives Considered
Various workarounds (markdown syntax, JavaScript handlers) are also sanitized
Additional Context
No response