Skip to content

[Bug]: URL Fragment Decoding Needed #36938

Closed

Description

Component

Other...

Package version

NA

@microsoft/fast-element version

NA

Environment

NA

Current Behavior

The page URL after encoding in Sharepoint Online is not working as expected

https://developer.microsoft.com/en-us/fluentui#/styles/web/icons#available-icons

After adding this link to Sharepoint Online - It changes to https://developer.microsoft.com/en-us/fluentui#/styles/web/icons%23available-icons

This link leads to 404 - Page not found

As per the Product team this is expected behavior as they are encoding all the non leading # character as %23 tp avoid nested URL embedding and the destination team has to decode it.

Please fix this at the earliest so that customer can navigate to this site without any issue.

Expected Behavior

Encoded URL should be accessible without any issue.

Encoded URL - https://developer.microsoft.com/en-us/fluentui#/styles/web/icons%23available-icons
Second # has been encoded

Reproduction

Steps included

Steps to reproduce

Go to Sharepoint online site.
Edit the Page.
Add the hyperlink in the Modern Text Webpart Eg - https://developer.microsoft.com/en-us/fluentui#/styles/web/icons#available-icons
Save and Publish the Page.
The link gets encoded to - https://developer.microsoft.com/en-us/fluentui#/styles/web/icons%23available-icons

The link leads to Page not found.

Are you reporting an Accessibility issue?

yes

Suggested severity

High - No workaround

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions