Skip to content

UI: Alert details markdown links navigation issue #4289

@Arunkumarlnr

Description

@Arunkumarlnr

Describe the Bug:
This issue occurs for some URLs that are added as markdown in the alert details page with special char like &, the URL is encoded into & causing the link to point to an incorrect or non-functional URL, this resulting in broken links when clicked.

Steps to Reproduce:

  1. Create an alert with links that has special chars or if one has integrated with grafana, whenever the panel goes to alerting state, the details will have the link to panel which will have & in it.
  2. Click on that url for navigating
  3. You can notice the special characters getting appended because of which we will land in the incorrect URL.

Expected Behavior:
The URL should be rendered and decoded properly without the encoded symbol allowing the link to navigate to the correct URL

URL in the details page
Link in details page: https://monitoring.temp.com/tlmy/d/bc5bf82d-5c95-4c2a-aa28-e3b5e807220d/test-payload?tab=alert&viewPanel=2&orgId=36
Link while navigating: https://monitoring.temp.com/tlmy/d/bc5bf82d-5c95-4c2a-aa28-e3b5e807220d/test-payload?tab=alert&viewPanel=2&orgId=36

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions