-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix links that are relative to the site root
Imported links like `/public/foo.json` currently get converted to https://docs.publishing.service.gov.uk/public/foo.json. These links obviously 404. Whilst technically they should be converted to https://www.github.com/public/foo.json (if we were to take them at face value), those links would also 404. What the developer intends, and what GitHub obliges to do, is to convert them relative to the repository, i.e. https://github.com/alphagov/lipsum/blob/master/public/foo.json. We must do the same. This commit should fix a live issue I'm seeing on this page: https://docs.publishing.service.gov.uk/apps/hmrc-manuals-api/extended_documentation.html#example-json
- Loading branch information
1 parent
b5f0424
commit 2f80db1
Showing
3 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters