Convert relative URLs to full URLs in production
Since our site is deployed with Pages, we're up against an edge case that might cause the majority of the links in a page to be broken gitlab-pages#354 (closed).
As Alessio pointed out in gitlab-pages#354 (comment 295210396), we can fix this on our side by converting all URLs to be full when deploying in production (NANOC_ENV=production
).
We still need to be able to use relative URLs locally, though, so this must be done in post-processing, most probably in https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/scripts/normalize-links.sh.
Edited by Sarah German