]> git.plutz.net Git - serve0/commitdiff
bugfix, base links in paginated browse pages
authorpaul <paul@plutz.net>
Sat, 14 Jan 2017 06:26:42 +0000 (06:26 +0000)
committerpaul <paul@plutz.net>
Sat, 14 Jan 2017 06:26:42 +0000 (06:26 +0000)
svn path=/trunk/; revision=169

pages/browse.sh

index 9b3e866d5ef55a809e93648ae1938db0d639eb84..e46023a70caf231fa22c6e6b990c272801fadebf 100755 (executable)
@@ -26,6 +26,8 @@ directory="$(invalidate "${_GET[d]}" '(.*/)?\.\.(/.*)?|' /)"
 filters="${_GET[f]}"
 debug "FILTERS: $filters"
 
+page_link="p=browse&d=$(urlsafe "$directory")&${page_link}"
+
 present_filter(){
   printf %s\\n "$*" \
   | sed -r 's;(^|!|\^|\|)([^!\^\|:]+:);\1;g;s;\^;\n;g' \