Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #36853
Closed
Open
Issue created Jul 26, 2022 by Administrator@rootContributor3 of 3 checklist items completed3/3 checklist items

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 `\\` "/" }}

https://github.com/twbs/bootstrap/blob/713d7140f18514c916f75be34e809ebe00c1691c/site/layouts/_default/docs.html#L19

Reduced test cases

  1. Open the page https://getbootstrap.com/docs/5.0/components/modal/
  2. Click the button "View on Github"
  3. 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

Assignee
Assign to
Time tracking