Skip to content
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

[Ntfy] Action link should only be included if url is defined #3274

Closed
2 tasks done
cfouche3005 opened this issue Jun 15, 2023 · 6 comments · Fixed by #4411
Closed
2 tasks done

[Ntfy] Action link should only be included if url is defined #3274

cfouche3005 opened this issue Jun 15, 2023 · 6 comments · Fixed by #4411
Labels
area:notifications Everything related to notifications feature-request Request for new features to be added good first issue Good for newcomers type:enhance-existing feature wants to enhance existing monitor

Comments

@cfouche3005
Copy link

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

When using the ntfy notification, uptime-kuma create an action button to go to the uptime-kuma page on the ntfy notification but the actual link is not completed. The main URL is setup on uptime-kuma

👟 Reproduction steps

Create an ntfy notification
Receive a down or up notification
Click on the action button on ntfy
See the result

👀 Expected behavior

the action button take you to the uptime-kuma page

😓 Actual Behavior

the action button take you to a about:blank page

image

🐻 Uptime-Kuma Version

1.22.0-beta.0

💻 Operating System and Arch

Fly.io

🌐 Browser

Not browser related

🐋 Docker Version

Fly.io

🟩 NodeJS Version

No response

📝 Relevant log output

No response

@cfouche3005 cfouche3005 added the bug Something isn't working label Jun 15, 2023
@CommanderStorm
Copy link
Collaborator

@clesmian
Copy link

This seems to happen for those cases where no URL is available, e.g. when monitoring a docker container. Could this also be the issue in your case @cfouche3005 ?

@cfouche3005
Copy link
Author

Yes, I can confirm (when I create an http monitor, the button on the notification redirect me to the monitored website), I was thinking that the button redirected to the probe on uptime-kuma, not the monitored website (but it make sense)

@CommanderStorm
Copy link
Collaborator

This seems to happen for those cases where no URL is available

@cfouche3005
What is the expected case and what is currently implemented?
Is this resolved?
I am confused

@cfouche3005
Copy link
Author

@CommanderStorm Sorry if it wasn't clear (English is not my first language), the issue is just a "normal" behavior : Uptime-Kuma set the action button web link with the monitored website but for Groups (or docker container), witch doesn't have a web link, it just set a blank link. The rest of the issue was just a misunderstanding of the actual behavior.
This issue might be a non issue.

@clesmian
Copy link

clesmian commented Jun 27, 2023

Just to clarify, the issue occurs currently for those monitors that do not have a URL associated to them (like docker containers).

The ntfy notification logic just assumes, that the URL field is set for every monitor and sets it as the target action of the "Open " button, it adds to the notification.

This leads to confusion to the user, because the button leads to an empty tab. Therefore uptime-kuma should either set the action to something meaningful (like a link to uptime-kuma itself) or don't display the button at all.

EDITED to state my opinion more clearly

@chakflying chakflying changed the title Ntfy Notification doesn't set action link [Ntfy] Action link should only be included if url is defined Dec 4, 2023
@chakflying chakflying added feature-request Request for new features to be added good first issue Good for newcomers and removed bug Something isn't working labels Dec 4, 2023
@CommanderStorm CommanderStorm added the area:notifications Everything related to notifications label Dec 5, 2023
@CommanderStorm CommanderStorm added the type:enhance-existing feature wants to enhance existing monitor label Dec 14, 2023
philbot9 pushed a commit to philbot9/uptime-kuma that referenced this issue Jan 23, 2024
philbot9 pushed a commit to philbot9/uptime-kuma that referenced this issue Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:notifications Everything related to notifications feature-request Request for new features to be added good first issue Good for newcomers type:enhance-existing feature wants to enhance existing monitor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants