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

[components][DocsHelp.tsx]: Fix "Edit this page on Github" fails when the URL contains a fragment #749

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

DarhkVoyd
Copy link
Member

What kind of change does this PR introduce?
This PR aims to fix the unintentional behaviour of Edit this page on Github button inside DocsHelp component which directs the user to invalid file when the URL contains a hash fragment. This is achieved by utilising the existing extractPathWithoutFragment method in the lib directory which performs its function as suggested by name, to extract path after removing the fragment before its passed on to the link generator.

Issue Number:

Does this PR introduce a breaking change?
No

@DarhkVoyd DarhkVoyd requested a review from a team as a code owner June 7, 2024 12:35
Copy link
Collaborator

@benjagm benjagm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks DV!

@benjagm benjagm merged commit 7680d32 into json-schema-org:main Jun 13, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 Bug: "Edit this page on Github" fails when the URL contains a fragment
2 participants