alphagov / tech-docs-gem

Gem to distribute the tech docs project
https://tdt-documentation.london.cloudapps.digital/
MIT License
15 stars 38 forks source link

Use 'url_for' in header to make automatic link types possible #70

Closed selfthinker closed 5 years ago

selfthinker commented 5 years ago

It is a best practice to use url_for (or link_to) for URLs so that links are automatically converted to either relative or absolute, depending on setting. This will make it work in setups which are in a subdirectory, like GitHub Pages.