From b5c615b179c8385fc8770262cd50012803c98ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Le=20Meur?= Date: Mon, 23 Feb 2026 15:14:25 +0100 Subject: [PATCH] fix: proper URLs in https://updates.jenkins.io/index.html --- site/generate.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/site/generate.sh b/site/generate.sh index 6d8657e57..5dce9966a 100755 --- a/site/generate.sh +++ b/site/generate.sh @@ -163,4 +163,11 @@ popd # copy other static resource files echo '{}' > "$WWW_ROOT_DIR/uctest.json" wget -q --convert-links -O "$WWW_ROOT_DIR/index.html" --convert-links https://www.jenkins.io/templates/updates/index.html +# replace relative paths in URLs and footer by absolute ones, and set the proper attributes for jio-components +sed -i '' \ + -e 's|href="/|href="https://www.jenkins.io/|g' \ + -e 's|property="https://www.jenkins.io"|property="https://updates.jenkins.io"|g' \ + -e 's|sourcepath=""|sourcepath="content/templates/updates.adoc"|' \ + "$WWW_ROOT_DIR/index.html" + cp -av "tmp/tiers.json" "$WWW_ROOT_DIR/tiers.json"