ntfy icon indicating copy to clipboard operation
ntfy copied to clipboard

Web UI: Clickable links

Open erickhavel opened this issue 1 year ago • 2 comments

I haven't been able to figure out a way to do this... Neither HTML nor markdown works (they're both output as-is). Is there any way to get hyperlinks to work in the web UI?

erickhavel avatar Sep 19 '22 21:09 erickhavel

I also tried with the "Click" header, didn't seem to do anything.

erickhavel avatar Sep 21 '22 02:09 erickhavel

This creates a clickable link in the web UI and in Android:

curl -d "this is a link: https://google.com" ntfy.sh/mytopic
{"id":"VGC6XqplEFIw","time":1663948323,"event":"message","topic":"mytopic","message":"this is a link: https://google.com"}

Markdown and HTML are not supported.

binwiederhier avatar Sep 23 '22 15:09 binwiederhier

I'm going to close this ticket since links are already clickable as demonstrated above, and markdown support is requested in #310. Let me know if you have more questions.

binwiederhier avatar Oct 01 '22 19:10 binwiederhier

Doesn't work for me:

image

Oh but ok, there's a UI update/revamp that I've missed (I've just patched the binary in my Docker setup)... that explains it.

erickhavel avatar Oct 20 '22 16:10 erickhavel

The screenshot you posted is from a UI that's many months old. I highly suggest you update your image frequently.

binwiederhier avatar Oct 20 '22 16:10 binwiederhier

Yeah I think I've forgotten to rebuild the container and instead just restarted after putting the new binary in place. 🤦 Working now!

erickhavel avatar Oct 20 '22 16:10 erickhavel

Let me know if you have more questions.

Shall I assume that there's no way to create hyperlinks then until Markdown support is implemented?

erickhavel avatar Oct 20 '22 16:10 erickhavel