This is an automated email from the ASF dual-hosted git repository.
jamesfredley pushed a commit to branch gh-pages
in repository https://gitbox.apache.org/repos/asf/grails-doc.git
The following commit(s) were added to refs/heads/gh-pages by this push:
new 5cf8c8ae1b Update 404 page with new redirect logic
5cf8c8ae1b is described below
commit 5cf8c8ae1babfd148d32847d55bcc8b979346d3b
Author: James Fredley <[email protected]>
AuthorDate: Tue Nov 4 22:28:13 2025 -0500
Update 404 page with new redirect logic
---
404.html | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/404.html b/404.html
index a57160d94f..f3f58ff2b6 100644
--- a/404.html
+++ b/404.html
@@ -2,9 +2,16 @@
<html lang="en">
<head>
<title>Redirecting...</title>
- <meta http-equiv="refresh" content="0;
url=https://grails.apache.org/docs/404.html"/>
+ <noscript>
+ <meta http-equiv="refresh" content="0;
url=https://grails.apache.org/docs/latest/"/>
+ </noscript>
+ <script>
+ var newBaseUrl = 'https://grails.apache.org/docs';
+ var currentPath = window.location.pathname;
+ window.location.href = newBaseUrl + currentPath;
+ </script>
</head>
<body>
-<p>This page has moved to <a
href="https://grails.apache.org/docs/404.html">https://grails.apache.org/docs/404.html</a></p>
+ <p>This page has moved. Please visit the new site at <a
href="https://grails.apache.org/docs/latest/">https://grails.apache.org/docs/latest/</a>
and search for the content you were looking for.</p>
</body>
</html>