From: paul Date: Wed, 17 May 2017 11:06:46 +0000 (+0000) Subject: try jumping to tagged video when multitagging X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=1fb516812d89c402dbb44aebeb4e8e04e4b03504;p=serve0 try jumping to tagged video when multitagging svn path=/trunk/; revision=185 --- diff --git a/actions/multitag.sh b/actions/multitag.sh index 36f3966..b38b204 100755 --- a/actions/multitag.sh +++ b/actions/multitag.sh @@ -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"