5.0 documentation "View on Github" hyperlink is 404ing
Created by: KartoffelCheetah
Prerequisites
-
I have searched for duplicate or closed issues -
I have validated any HTML to avoid common problems -
I have read the contributing guidelines
Describe the issue
In some versions the "View on GitHub" hyperlink inside documentation goes to Github's 404 page.
Example:
The following page https://getbootstrap.com/docs/5.0/components/modal/ includes a hyperlink near the top of the page to the md file at https://github.com/twbs/bootstrap/blob/main/site/content/docs/5.0/components/modal.md . Since the link does not point to a fixed tag, but the main branch it cannot find the "5.0" folder which was since renamed to "5.2".
At least in the current version it's generated like this:
{{ .Site.Params.repo }}/blob/main/site/content/{{ .Page.File.Path | replaceRE `\\` "/" }}
Reduced test cases
- Open the page https://getbootstrap.com/docs/5.0/components/modal/
- Click the button "View on Github"
- The 404 Github page is displayed.
What operating system(s) are you seeing the problem on?
Linux
What browser(s) are you seeing the problem on?
Firefox
What version of Bootstrap are you using?
5.0