UKHomeOffice / engineering-guidance-and-standards

Engineering Guidance and Standards for the Home Office
https://engineering.homeoffice.gov.uk
MIT License
14 stars 2 forks source link

[BUG] - Requirements anchor links in a number of standards are not working #348

Closed edhamiltonHO closed 7 months ago

edhamiltonHO commented 7 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '[https://engineering.homeoffice.gov.uk/standards/managing-security-software-dependencies/}(https://engineering.homeoffice.gov.uk/standards/managing-security-software-dependencies/)'
  2. Click on https://engineering.homeoffice.gov.uk/standards/managing-security-software-dependencies/#you-must-regularly-update-replace-and-remove-dependencies
  3. Page will not scroll down

Expected behavior Expect that clicking an anchor link like this will take the view of page to that heading

Additional context This issue is happening because the broken anchor links relate to headings which include special characters. To this point we have been creating anchor links to a particular standard that works for GitHub preview, but does not work on the live site. We need to change the way that we do this as well as the fixing the anchor links that are broken

Recommend updating the template for a standard so that it is clear to contributors how they should specify anchor links for requirements when special characters are included in the heading text