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

Emojis in endpoint name lead to empty endpoint detail pages #880

Open
PirMei opened this issue Oct 22, 2024 · 3 comments
Open

Emojis in endpoint name lead to empty endpoint detail pages #880

PirMei opened this issue Oct 22, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@PirMei
Copy link

PirMei commented Oct 22, 2024

Describe the bug

Hi,
since we've introduced the 🚨 emoji in our endpoint names to easier distinguish endpoints with alerts and endpoints without alerts in the web UI, the single endpoint pages with more details only shows up blank for these endpoints (and for those with the 🚨 only).

What do you see?

This endpoint, when you click its link
grafik
shows up as
grafik

(so no history, no graph, no badges, no events)

What do you expect to see?

The regular detailed endpoint page.

List the steps that must be taken to reproduce this issue

  1. Create and endpoint with a name ending with an emoji
  2. Reload gatus for configuration changes
  3. Endpoint shows up with history on the main page but the detail page is empty

Version

latest from Docker Hub

Additional information

No response

@PirMei PirMei added the bug Something isn't working label Oct 22, 2024
@ClayenKitten
Copy link

Also happens with cyrillic characters, so I guess everything that is not ASCII is off limits

@d8sychain
Copy link

I haven't tested it with other characters, but using # in the group name or endpoint name will result in a blank details page also.

To sort my groups I had named them #1 Group A, #2 Group B, #3 Group C, etc. This caused every detail page to load blank. Once I removed the # from the group name it started working.

@salim-b
Copy link
Contributor

salim-b commented Jan 30, 2025

A blank detail page means the path to the detail page is wrong (just add a random character to the path of any valid detail page to reproduce). I guess the "endpoint name to URL path" normalization is broken somewhere for emojis, so the link on Gatus' main page to the endpoint detail page is wrong if the endpoint name contains emojis.

Related to #749.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants