]> git.plutz.net Git - lobster/blobdiff - therapies/update_therapy.sh
disable autosubmit, submit when using back-button
[lobster] / therapies / update_therapy.sh
index 0474b3b3be6d608f4db5975b93b03dc1b21c2c4a..c72d0408de3af39e0c5606a72f7f9476e460c25f 100755 (executable)
@@ -125,6 +125,8 @@ if [ "$(POST autosubmit)" = "true" ]; then
   msg="$(transid "$tpyfile")"
   printf 'HTTP/1.1 200 OK\r\nContent-Length: %i\r\n\r\n%s' \
          "${#msg}" "${msg}"
+elif [ "$(POST vcfreturn)" ]; then
+  REDIRECT "/cards/#${tpy%.*}.vcf"
 else
   REDIRECT "/therapies/${tpy%.*}/${tpy#*.}"
 fi