]> git.plutz.net Git - shellwiki/blobdiff - handlers/90_brackets.sh
work around for linking to page view from handler sub pages (i.e. revision pages)
[shellwiki] / handlers / 90_brackets.sh
index dadd6445f663c80abb3a03d3ed9e6bd5c570d121..1f11cf4448697124a7b4fdfe08a2f64cc42aecae 100755 (executable)
@@ -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