From: Paul Hänsch Date: Mon, 23 May 2022 17:42:27 +0000 (+0200) Subject: work around for linking to page view from handler sub pages (i.e. revision pages) X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=a7cc6c21c6a90df07a66dc2ec3c14ccf3633416c;p=shellwiki work around for linking to page view from handler sub pages (i.e. revision pages) --- diff --git a/handlers/90_brackets.sh b/handlers/90_brackets.sh index dadd644..1f11cf4 100755 --- a/handlers/90_brackets.sh +++ b/handlers/90_brackets.sh @@ -6,6 +6,10 @@ # attachment and edit (and really all) handlers should take precedence case "${PATH_INFO}" in + */\[view\]) + # explicit view handler for linking + REDIRECT "${_BASE}${PATH_INFO%\[view\]}" + ;; */) if [ ! "$(mdfile "${PATH_INFO}")" ]; then theme_error 404 diff --git a/themes/default.sh b/themes/default.sh index 001dd3c..89d4fad 100755 --- a/themes/default.sh +++ b/themes/default.sh @@ -24,7 +24,7 @@ theme_pagemenu(){ if acl_write "$page"; then printf '