-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open maintainance links in new tab #5130
Comments
I am willing to work on this issue ... as I have stron foundation on front-End technologies @kub3let can you please assign me this work .. looking forward to your response Thank you:) |
We don't assign users to issues. |
okay sure @CommanderStorm |
@kub3let can you tell me in what part of uptime kuma maintainance you insert the link? |
@VarPDev sure it's in the description field, to replicate:
|
@kub3let So I think you have to open a issue to marker library and when they solve this, you can open a link in other tab using this syntax: |
I don't think changing It does expose the rendering functions so can be adjusted in uptimekuma, e.g.
Another approach would be a js document load handler which updates all I can take a look myself If i find time to setup the dev environment, but I would like feedback from the maintainers first which approach we wan't to do. @CommanderStorm |
If we prefer that by default it should be put to all links target="_blank" then it is not the right approach. Currently marked if you pass him this link: what do you think? |
Striping the tags is most likely a security feature, e.g. strip js etc. from it. So that's probably why target get's removed. Either way I don't think people should need to write html with target blank etc., they should just paste an http link and it should be rendered accordingly with Limiting it only to the maintenance content makes sense, but I don't think it hurts doing it globally as well, I would prefer this to be the default. |
🛡️ Security Policy
Description
Currently urls are rendered as
a href
and are clickable, but if you click on them you move away from uptimekuma.I would be great if these are rendered with
target="_blank"
to open in a new tab.👟 Reproduction steps
Create a manual maintainance with a link to another site e.g. https://example.com
👀 Expected behavior
Link opens in a new tab
😓 Actual Behavior
Link opens in current tab
🐻 Uptime-Kuma Version
1.23.13
💻 Operating System and Arch
Docker
🌐 Browser
Chrome
🖥️ Deployment Environment
not relevant
📝 Relevant log output
No response
The text was updated successfully, but these errors were encountered: