Skip to content

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Sep 17, 2025

Read the Docs redirects don't reliably apply when there is a large amount of redirects defined. While this JavaScript-based solution is not as seamless, it has no limit on how many redirects can be defined.

To test this PR, build the website locally and run simple-http-server --try-file 404.html in _build/html. It's important to instruct the local web server to use 404.html as a custom 404 page, or you won't be able to test this.

Note that redirects.csv isn't modified by this PR yet, so this won't perform all redirects from the previous contributing section to contributing.godotengine.org.

We'll also probably want to change the redirects CSV URL to match the current branch in the long run. I'm not sure how we should do this in a way that keeps working with local web servers (which may not have /latest, /stable or /4.5 in the URL). Maybe we should just modify custom.js for each branch?

@Calinou Calinou added enhancement content:website Issues related to adding website features and fixing bugs, whether on the front or back-end content:redirect Issues and PRs involving moving content and adding a redirect rule on the backend labels Sep 17, 2025
@Calinou Calinou force-pushed the add-javascript-redirects branch 2 times, most recently from 5bf2df1 to 2bb8148 Compare September 17, 2025 23:55
Read the Docs redirects don't reliably apply when there is a
large amount of redirects defined. While this JavaScript-based
solution is not as seamless, it has no limit on how many redirects
can be defined.
@Calinou Calinou force-pushed the add-javascript-redirects branch from 2bb8148 to 07f0af0 Compare September 17, 2025 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content:redirect Issues and PRs involving moving content and adding a redirect rule on the backend content:website Issues related to adding website features and fixing bugs, whether on the front or back-end enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant