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-data-mapping.git
The following commit(s) were added to refs/heads/gh-pages by this push:
new 8f219dbdc9 Enhance 404 page with JavaScript redirection
8f219dbdc9 is described below
commit 8f219dbdc97dac51df2cef6fab393d0bad0a0cee
Author: James Fredley <[email protected]>
AuthorDate: Fri Jan 30 10:10:45 2026 -0500
Enhance 404 page with JavaScript redirection
Added JavaScript and noscript tags for redirection.
---
404.html | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/404.html b/404.html
index c959337a93..5147c9ff84 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-legacy-gorm/"/>
+ <noscript>
+ <meta http-equiv="refresh" content="0;
url=https://grails.apache.org/docs-legacy-gorm/"/>
+ </noscript>
+ <script>
+ var newBaseUrl = 'https://grails.apache.org/docs-legacy-gorm';
+ 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-legacy-gorm/">https://grails.apache.org/docs-legacy-gorm/</a></p>
+ <p>This page has moved to <a
href="https://grails.apache.org/docs-legacy-gorm/">https://grails.apache.org/docs-legacy-gorm/</a></p>
</body>
</html>