]> git.plutz.net Git - confetti/blobdiff - cards/widgets.sh
allow running from sub directory of base location
[confetti] / cards / widgets.sh
index 09956a70559ac8f788b6da14e6f5cea2901addbb..eb9d0fde95cb88f6bba42282e4b7738467f74047 100755 (executable)
@@ -51,7 +51,7 @@ cat <<EOF
                  "$(printf %s "$cat" |grep -qxEe "$2" && printf checked )" \
                  "$(HTML "$cat")"
       done)
-      [a href="/categories/" $(l10n edit_categories)]
+      [a href="${_BASE}/categories/" $(l10n edit_categories)]
     ]
     [fieldset .tab .courses
       $(list_courses | while IFS=/ read course coursename; do
@@ -67,7 +67,7 @@ EOF
 
 w_filter_diag(){
   cat <<EOF
-  [form .filter action="/cards/filter_card.sh" method="POST"
+  [form .filter action="${_BASE}/cards/filter_card.sh" method="POST"
     [h1 $(l10n filter_label)]
     [input type="hidden" name="page" value="cards"]