sensu / web

Open-source Web UI for Sensu Go clusters
MIT License
30 stars 22 forks source link

could not open entities, events in a new tab #377

Open maxadamo opened 3 years ago

maxadamo commented 3 years ago

Expected Behavior

click "open in new tab" and open the event/entity there. It works with the enterprise version.

Current Behavior

I get the following version:

Cannot GET /n/default/events/oc_check_ping/oc_check_ping_psmp-gn-drac-01-vie-at.XXXX.org

Possible Solution

In the community edition, I need to add a trailing slash. In the enterprise version, this is not necessary.

rmatte commented 1 year ago

Can confirm that we're seeing the same issue in the OSS version of the UI. Can be worked around using a url rewrite but would be really nice to see this get fixed. It seems to happen specifically when there's a period as part of the entity name. We don't see the problem when there's no period. It also only happens on GET requests, the POST requests that happen when clicking through the UI work fine, so some kind of parsing issue with the GET requests when navigating to specific URLs, currently requires the trailing slash to work for whatever reason.