# 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
if acl_write "$page"; then
printf '
<ul class="pagemenu">
- <li><a href="./">View</a></li>
+ <li><a href="./[view]">View</a></li>
<li><a href="./[edit]">Edit</a></li>
<li><a href="./[attachment]">Attachments</a></li>
<li><a href="./[revision]">Revisions</a></li>