From a6a03376dcbafc71596b5417c01c17359cd09fca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Brandenburg?= Date: Thu, 21 Dec 2023 22:41:27 +0100 Subject: [PATCH] propagate hash fragment (=href anchor) when redirecting URLs When redirecting requests for stdlib or refman pages, propagate the URL's fragment identifer (the string following the '#' sign, if any). This is required for stdlib URLs so that links generated by coqdoc resolve to specifc identifiers, as intended. While at it, also preserve the fragment identifier in refman pages, in case someone, somewhere meant to link to specific parts of the reference manual. Fixes: https://github.com/coq/coq.github.io/issues/235 --- pages/404.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pages/404.html b/pages/404.html index 6876bb68ee..d56c943de3 100644 --- a/pages/404.html +++ b/pages/404.html @@ -1,6 +1,7 @@ <#include "incl/macros.html">