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

docs: use stable URL for 404 [skip ci] #5931

Merged
merged 1 commit into from Mar 5, 2024

Conversation

stasadev
Copy link
Member

@stasadev stasadev commented Mar 4, 2024

The Issue

I noticed that 404 links always point to the latest docs.

How This PR Solves The Issue

Uses stable URL.
I was concerned about # todo: Make sure to set this to the correct one; otherwise it breaks 404 page for the site_url, so I tested this on my own fork before making this change.

Manual Testing Instructions

Current stable: https://ddev.readthedocs.io/en/stable/404 and click any link, see the latest docs.
Current latest: https://ddev.readthedocs.io/en/latest/404 and click any link, see the latest docs.

Latest after merge: https://ddev.readthedocs.io/en/latest/404 (Hard reload the page) and click any link, see the stable docs.
Stable after merge: remains the same.

This change will not fix 404 for stable until the next stable release is out.

Automated Testing Overview

Related Issue Link(s)

Release/Deployment Notes

@stasadev stasadev requested a review from a team as a code owner March 4, 2024 21:34
@@ -1,7 +1,7 @@
# yaml-language-server: $schema=https://squidfunk.github.io/mkdocs-material/schema.json
site_name: DDEV Docs
# todo: Make sure to set this to the correct one; otherwise it breaks 404 page
site_url: https://ddev.readthedocs.io/en/latest/
site_url: https://ddev.readthedocs.io/en/stable/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty weird if site_url is only for the 404...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wondered why we ever need site_url, and found this:

People still complain about it because it hasn't been fixed.

@rfay rfay changed the title docs: use stable URL for 404 docs: use stable URL for 404 [skip ci] Mar 4, 2024
@rfay rfay merged commit 792611b into ddev:master Mar 5, 2024
18 checks passed
@stasadev stasadev deleted the 20240304_stasadev_docs_404_to_stable branch March 5, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants