]> git.plutz.net Git - serve0/commitdiff
try jumping to tagged video when multitagging
authorpaul <paul@plutz.net>
Wed, 17 May 2017 11:06:46 +0000 (11:06 +0000)
committerpaul <paul@plutz.net>
Wed, 17 May 2017 11:06:46 +0000 (11:06 +0000)
svn path=/trunk/; revision=185

actions/multitag.sh

index 36f396680af3435393f1180b21d5066ed5c8d206..b38b204ea0688bb21592d02d32d09c7bae1ca212 100755 (executable)
@@ -55,10 +55,10 @@ while [ -n "${_POST[tagsel$n]}" ]; do
   done
   rm "${_DATA}/cache/$tagsel.cache" 2>/dev/null
 
-  [ -z "$n" ] && n=0 || n=$(($n + 1))
+  n=$((${n:--1} + 1))
 done
 
 rm "${_DATA}"/cache/\?* 2>/dev/null
 [ -n "${_POST[tags]}" ] && rm "${_DATA}"/cache/taglist_set "${_DATA}"/cache/taglist_filter 2>/dev/null
 
-redirect "$backlink"
+redirect "$backlink#$tagsel"