This is an automated email from the ASF dual-hosted git repository. jamesfredley pushed a commit to branch asf-site-production in repository https://gitbox.apache.org/repos/asf/grails-website.git
commit d20d80ec49f4b23c46002c548c332d09d8009985 Author: James Fredley <[email protected]> AuthorDate: Thu Oct 9 22:52:02 2025 -0400 Remove legacy redirect script from 404 page Deleted the JavaScript that redirected legacy Grails docs URLs to the new location. This simplifies the 404 page and removes automatic redirection for outdated URLs. --- docs/404.html | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/docs/404.html b/docs/404.html index 4e98abcf8bc..1888fc74eaf 100644 --- a/docs/404.html +++ b/docs/404.html @@ -4,22 +4,7 @@ <head> <meta charset="utf-8"> <title>Error 404 - Page Not Found</title> - - <script> - window.onload = function () { - const legacyUrlRegex = /^https:\/\/docs\.grails\.org\/[0-4]\.[0-9]\.[0-9|x]+?(.*)/; - const href = window.location.href; - const match = legacyUrlRegex.test(href); - - if (match) { - const redirectLocation = window.location.href.replace( - "docs.grails.org/", - "grails.github.io/legacy-grails-doc/"); - document.getElementById("body").innerHTML = "Redirecting to " + redirectLocation + " ..."; - window.location.href = redirectLocation; - } - } - </script> + </head> <body id="body" style="text-align: center">
