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 da5a6ac2bdfc8f7a8386d0346d16a2ea8a4269f7 Author: James Fredley <[email protected]> AuthorDate: Fri Oct 10 13:50:03 2025 -0400 Remove legacy URL redirect script from 404 page Eliminated the JavaScript that redirected legacy GORM documentation URLs to the new location. This simplifies the 404 page and removes automatic client-side redirection logic. --- docs-legacy-gorm/404.html | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/docs-legacy-gorm/404.html b/docs-legacy-gorm/404.html index 40cebaf374e..1888fc74eaf 100644 --- a/docs-legacy-gorm/404.html +++ b/docs-legacy-gorm/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:\/\/gorm\.grails\.org\/[0-7]\.[0-9]\.[0-9|x]+?(.*)/; - const href = window.location.href; - const match = legacyUrlRegex.test(href); - - if (match) { - const redirectLocation = window.location.href.replace( - "gorm.grails.org/", - "grails.github.io/legacy-gorm-doc/"); - document.getElementById("body").innerHTML = "Redirecting to " + redirectLocation + " ..."; - window.location.href = redirectLocation; - } - } - </script> + </head> <body id="body" style="text-align: center">
