]> git.plutz.net Git - confetti/blobdiff - cards/index.cgi
allow running from sub directory of base location
[confetti] / cards / index.cgi
index 934c19ac3bf2499b3aee9adf0440188739a6e3f2..2c9f267e1f6e0345164df1c674fac6b36338c724 100755 (executable)
@@ -16,10 +16,10 @@ edit="${edit##*/}"
 
 { w_filter_diag
   printf '
-  [form class="newcard" action="/cards/new_card.sh" method="POST"
+  [form class="newcard" action="%s/cards/new_card.sh" method="POST"
     [button type="submit" %s]
     [input name="seed" placeholder="%s"]
-  ]' "$(l10n newcard)" "$(l10n vcf_seed_label)"
+  ]' "${_BASE}" "$(l10n newcard)" "$(l10n vcf_seed_label)"
   [ "$edit" ] && edit_card "$edit"
   list_cards
 } | yield_page cards #/cards/cards.css