From bc0011fc05abbd9f079145b753dab4fa6b823077 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=B6ren=20Weber?= <mail@soeren-weber.de>
Date: Sun, 16 Mar 2025 23:59:39 +0100
Subject: [PATCH] link: check fragments on same page #1060

---
 layouts/partials/_relearn/decoratedLink.gotmpl | 8 +++++++-
 layouts/partials/version.txt                   | 2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/layouts/partials/_relearn/decoratedLink.gotmpl b/layouts/partials/_relearn/decoratedLink.gotmpl
index 666fe8d91b..797c804da5 100644
--- a/layouts/partials/_relearn/decoratedLink.gotmpl
+++ b/layouts/partials/_relearn/decoratedLink.gotmpl
@@ -1,7 +1,13 @@
 {{- $u := urls.Parse .url }}
 {{- $hideFilepath := .hideFilepath | default false }}
 {{- $type := printf "%T" .linkObject }}
-{{- $isPage := eq $type "*hugolib.pageState" }}
+{{- $isPage := or
+	(eq $type "*hugolib.pageForRenderHooks")
+	(eq $type "*hugolib.pageForShortcode")
+	(eq $type "*hugolib.pageState")
+	(eq $type "*hugolib.pageWithOrdinal")
+	(eq $type "*hugolib.pageWithWeight0")
+}}
 {{- $href := partial "permalink.gotmpl" (dict "to" .linkObject) }}
 {{- if $isPage }}
 	{{- $format := $u.Query.Get "format" }}
diff --git a/layouts/partials/version.txt b/layouts/partials/version.txt
index c3d53db5a3..233149720c 100644
--- a/layouts/partials/version.txt
+++ b/layouts/partials/version.txt
@@ -1 +1 @@
-7.5.0+566c17d000a04bc3d189525bfb8d2ea06dcfe71d
\ No newline at end of file
+7.5.0+b89d1e3fb63c72c28f83bda3ef08bdca7723066c
\ No newline at end of file