Skip to content

[BUG] Comma in Fragment of URL Is Not Being Replaced, Causing Broken Links #3633

@Shriya-Chauhan

Description

@Shriya-Chauhan

Describe the bug.

When clicking on a link with a fragment that contains a comma (e.g., #call-for-speakers,-singapore), the generated URL is not working correctly. The URL generated is: https://www.asyncapi.com/blog/conference-2024-summary#call-for-speakers,-singapore

However, when manually modifying the URL to replace the comma with a hyphen, the link works as expected: https://www.asyncapi.com/blog/conference-2024-summary#call-for-speakers-singapore

Expected behavior

The URL should automatically replace commas in the fragment with hyphens, resulting in a valid URL like:

https://www.asyncapi.com/blog/conference-2024-summary#call-for-speakers-singapore

Screenshots

Screencast.from.01-31-2025.11.00.17.AM.webm

How to Reproduce

Steps to Reproduce:
-Go to https://www.asyncapi.com/blog/conference-2024-summary

🥦 Browser

Google Chrome

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions