This is an automated email from the ASF dual-hosted git repository.
martijnvisser pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new b68ab1e5d8b [hotfix][docs] Strip leading slash in redirect template
before relURL
b68ab1e5d8b is described below
commit b68ab1e5d8b157ddc102ba1b59b9eca2e6843f90
Author: Martijn Visser <[email protected]>
AuthorDate: Tue Feb 10 19:33:41 2026 +0100
[hotfix][docs] Strip leading slash in redirect template before relURL
---
docs/layouts/_default/redirect.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/layouts/_default/redirect.html
b/docs/layouts/_default/redirect.html
index 25a14475fc4..bb2a8de2f55 100644
--- a/docs/layouts/_default/redirect.html
+++ b/docs/layouts/_default/redirect.html
@@ -20,11 +20,11 @@ under the License.
<html lang="{{ .Site.Language.Lang }}">
<head>
<meta charset="UTF-8">
- <meta http-equiv="refresh" content="0; url={{ .Params.redirect_to | relURL
}}">
- <link rel="canonical" href="{{ .Params.redirect_to | relURL }}">
+ <meta http-equiv="refresh" content="0; url={{ strings.TrimPrefix "/"
.Params.redirect_to | relURL }}">
+ <link rel="canonical" href="{{ strings.TrimPrefix "/" .Params.redirect_to
| relURL }}">
<title>Redirecting...</title>
</head>
<body>
- <p>This page has moved. If you are not redirected automatically, <a
href="{{ .Params.redirect_to | relURL }}">click here</a>.</p>
+ <p>This page has moved. If you are not redirected automatically, <a
href="{{ strings.TrimPrefix "/" .Params.redirect_to | relURL }}">click
here</a>.</p>
</body>
</html>