Skip to content

fix: correct edit links for GitHub - #96

Open
davidjb wants to merge 1 commit into
gregberge:mainfrom
davidjb:patch-1
Open

fix: correct edit links for GitHub#96
davidjb wants to merge 1 commit into
gregberge:mainfrom
davidjb:patch-1

Conversation

@davidjb

@davidjb davidjb commented Jul 27, 2026

Copy link
Copy Markdown

Summary

This follows on from #95, adding the required missing / into the edit links for GitHub. That previous PR attempted to change the link to pointing at /blob, which is the "show" view of the file, but not the edit link.

As seen on a page like https://react-svgr.com/docs/jest/, the edit link is currently broken, pointing at:

https://github.com/gregberge/svgredit/main/website/pages/docs/jest.mdx

But it should be:

https://github.com/gregberge/svgr/edit/main/website/pages/docs/jest.mdx

(addition of a slash separator before /edit).

Per https://github.com/gregberge/smooth-doc/blob/main/website/pages/docs/options.mdx#githubrepositoryurl, the option should not have a trailing slash, so this is all the fix that's required.

Test plan

Clicking on the 2nd link above takes you to the edit UI for that page to confirm the fix.

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.

1 participant