]> git.plutz.net Git - busy/blobdiff - templates/frame.html.sh
relative URI syntax in form actions, link references and redirects
[busy] / templates / frame.html.sh
index 969512293f3cc31f2bb6faf6f9585bf8a39a2e8a..cba50197679b3294ef1f443f99e67937ec31ad53 100755 (executable)
@@ -85,7 +85,7 @@ cat <<EOF
       <span id="SLOGAN">$(egrep '^slogan=.*$' project.meta |cut -d= -f2-)</span>
     </div>
     <div id="USERMENU">
-      $( $LOGIN || echo '<form action="/?action=login" method="post" accept-charset="UTF-8">
+      $( $LOGIN || echo '<form action="./?action=login" method="post" accept-charset="UTF-8">
                            Login:<br>
                           <input type="text" name="user" value placeholder="Username"><br>
                           <input type="password" name="pass" value placeholder="Password"><br>
@@ -101,10 +101,10 @@ cat <<EOF
       $(list_accounts)
     </div>
     <div id="MENU">
-      <a href='/?p=Home'>Home</a>
-      <a href='/?p=Wiki'>Wiki</a>
-      <a href='/?p=Subversion'>Code</a>
-      <a href='/?p=Tasks'>Tasks</a>
+      <a href='./?p=Home'>Home</a>
+      <a href='./?p=Wiki'>Wiki</a>
+      <a href='./?p=Subversion'>Code</a>
+      <a href='./?p=Tasks'>Tasks</a>
     </div>
 
     $(. $PAGE body)