Skip to content

GitHub markdown linkifier bug

Kid edited this page Apr 11, 2023 · 2 revisions

GitHub has this really annoying bug that changes pull request commit links:

https://github.com/sindresorhus/refined-github/pull/3/commits/cb44a4eb8cd5c66def3dc26dca0f386645fa29bb

into non-pull-request-related links like:

https://github.com/sindresorhus/refined-github/commit/cb44a4eb8cd5c66def3dc26dca0f386645fa29bb

This bug applies to raw URLs but not URLs that are already part of a Markdown link, like:

[my commit](https://github.com/sindresorhus/refined-github/pull/3/commits/cb44a4eb8cd5c66def3dc26dca0f386645fa29bb)

Refined GitHub's prevent-link-loss feature will prompt you to fix this link and you can do so with a click:

demo gif