From b5f8bcc4e397011d3dbec2ca215d641dd7a02689 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=B6ren=20Weber?= <mail@soeren-weber.de>
Date: Thu, 20 Mar 2025 22:58:31 +0100
Subject: [PATCH] version: fix slashes in url #1050

---
 layouts/partials/stylesheet.html | 4 ++--
 layouts/partials/version.txt     | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/layouts/partials/stylesheet.html b/layouts/partials/stylesheet.html
index a44d1b729b..fcfa20aeba 100644
--- a/layouts/partials/stylesheet.html
+++ b/layouts/partials/stylesheet.html
@@ -110,13 +110,13 @@
       {{- end }}
       {{- with (where $versions "isLatest" true | first 1) }}
         {{- range . }}
-          {{- $versionIndexUrl = path.Join .baseURL $versionIndexUrl }}
+          {{- $versionIndexUrl = print .baseURL "/" $versionIndexUrl }}
         {{- end }}
       {{- end }}
     {{- end }}
     {{- $home_path := site.Home.RelPermalink }}
     {{- $this_path := .RelPermalink }}
-    {{- $path := (strings.TrimPrefix $home_path $this_path) | default "/" }}
+    {{- $path := print "/" (strings.TrimPrefix $home_path $this_path) }}
     {{- $path = partial "permalink.gotmpl" (dict "link" $path) }}
     {{- $default_home_lang_path := site.Sites.Default.Home.Permalink }}
     {{- $this_home_lang_path := site.Home.Permalink }}
diff --git a/layouts/partials/version.txt b/layouts/partials/version.txt
index fa88e6819c..9a43d3fff5 100644
--- a/layouts/partials/version.txt
+++ b/layouts/partials/version.txt
@@ -1 +1 @@
-7.5.0+3ccc8f777f8dd35f750a00ca986f9db808548306
\ No newline at end of file
+7.5.0+7a2667a7d3f4f14d5188e9df975ce6e3799e83c3
\ No newline at end of file