debug "TID mismatch updating $file"
fi
if [ $(POST action) = update_invoice_return ]; then
- REDIRECT "${_BASE}"
+ REDIRECT "${_BASE}/"
else
REDIRECT "${_BASE}$PATH_INFO"
fi
REDIRECT "${_BASE}/pdf/${id}/$(URL "${filenamestring}.pdf")"
;;
*)
- REDIRECT "${_BASE}"
+ REDIRECT "${_BASE}/"
;;
esac
;;
/doc/*)
id="${PATH_INFO##*/}" tid="$(transid "${_DATA}/${id}.kvd")"
- DB3 open "${_DATA}/${id}.kvd" || REDIRECT "${_BASE}"
+ DB3 open "${_DATA}/${id}.kvd" || REDIRECT "${_BASE}/"
type="$(DB3 get type)"
[ -d "${_EXEC}/${type}/" ] \
&& . "${_EXEC}/${type}/form.sh"
id="${PATH_INFO#/pdf/}" id="${id%%/*}"
FILE "$_DATA/export/${id}.pdf"
;;
- *) REDIRECT "${_BASE}"
+ *) REDIRECT "${_BASE}/"
;;
esac