Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change includes files to use absolute URIs to fix broken relative links #561

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bosh
Copy link
Contributor

@bosh bosh commented Feb 18, 2025

When an include file generates a link, it is referenced relative to the generating file's path. This means that reusing the include in different nesting levels and context across the docs will result in inconsistent links that will always be broken (many are missing the latest/ version namespace, for instance.)

The easiest/laziest solution is to always generate pointing to the live website, latest version, with an absolute URI. If each version from Mike can instead have a template-available variable that is the hostname and version number (or latest), then we could improve this by generating self-contained links instead of always-prod ones.

…des files are used in multiple nesting levels

The issue is that the include will generate links from the perspective of the including file,
resulting in many missing /latest/'s and other variations of broken links
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant