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] Writing a standard link (related link) does not work on the standards page #270

Closed keithkennedyHO closed 9 months ago

keithkennedyHO commented 9 months ago

Describe the bug Related links -> writing a standard link does not work on the standards page

To Reproduce Steps to reproduce the behavior:

  1. Go to the standards page
  2. Click on writing a standard under the "related links" section
  3. See page not found error

Expected behavior You should see the writing a standard page

keithkennedyHO commented 9 months ago

It appears that the related function in eleventyComputed.js is being processed n times where n is the number of paginations, causing the pathPrefix to be appended n times rather than once.