]> git.plutz.net Git - busy/blobdiff - templates/Wiki_show.page
relative URI syntax in form actions, link references and redirects
[busy] / templates / Wiki_show.page
index cfe86e4323dc480ce6208c93f441e385202813c9..d00f0e59891e47c76c70bff3de9e4b8b9428746a 100755 (executable)
@@ -18,7 +18,7 @@ add_comment(){
       <a id='comment_button' class='function' href='#'
          onclick='javascript:show_screen("comment");hide_screen("comment_button");'>Comment / Ask</a>
       <div id="comment" style="display: none;">
       <a id='comment_button' class='function' href='#'
          onclick='javascript:show_screen("comment");hide_screen("comment_button");'>Comment / Ask</a>
       <div id="comment" style="display: none;">
-        <form action="/?action=wikimeta&i=$info" method="post" accept-charset="UTF-8">
+        <form action="./?action=wikimeta&i=$info" method="post" accept-charset="UTF-8">
           <b>Comment:</b><br>
           <textarea name="comm" rows="6" style="width:99%;"></textarea><br>
           <input type="submit" value="Submit">
           <b>Comment:</b><br>
           <textarea name="comm" rows="6" style="width:99%;"></textarea><br>
           <input type="submit" value="Submit">
@@ -30,7 +30,7 @@ WikiEND
 
 cat <<WikiEND
     <div id="LEFT">
 
 cat <<WikiEND
     <div id="LEFT">
-      <form method="GET" action="/${SCRIPTNAME}" accept-charset="utf-8">
+      <form method="GET" action="./" accept-charset="utf-8">
        <input type="hidden" name="p" value="Wiki">
        <input type="text" name="s" placeholder="Search"><br>
        <input type="submit" value="Search Wiki">
        <input type="hidden" name="p" value="Wiki">
        <input type="text" name="s" placeholder="Search"><br>
        <input type="submit" value="Search Wiki">
@@ -45,10 +45,10 @@ cat <<WikiEND
         done) <a class='rev' href='?p=Wiki&amp;i=$info'>Latest</a><br>
       <hr>
       $($LOGIN && if [ -z "$lock" ]; then
         done) <a class='rev' href='?p=Wiki&amp;i=$info'>Latest</a><br>
       <hr>
       $($LOGIN && if [ -z "$lock" ]; then
-          [ -z "$rev" ] && echo "<a class='function' href='/?action=lock&amp;p=Wiki&amp;e=$info'>edit this page</a>"
-         [ -n "$rev" ] && echo "Click <a class='function' href='/?action=lock&amp;p=Wiki&amp;e=${info}&amp;r=${rev:s/.//}'>edit</a> to derive a new page revision from this one."
+          [ -z "$rev" ] && echo "<a class='function' href='./?action=lock&amp;p=Wiki&amp;e=$info'>edit this page</a>"
+         [ -n "$rev" ] && echo "Click <a class='function' href='./?action=lock&amp;p=Wiki&amp;e=${info}&amp;r=${rev:s/.//}'>edit</a> to derive a new page revision from this one."
         else
         else
-         echo "<b>This page is currently being edited by $lock</b><a class='function' href='/?action=lock&amp;p=Wiki&amp;e=$info'>edit anyway</a>"
+         echo "<b>This page is currently being edited by $lock</b><a class='function' href='./?action=lock&amp;p=Wiki&amp;e=$info'>edit anyway</a>"
         fi
         $LOGIN && echo '<hr>')
       <h1>Table of Content</h1>
         fi
         $LOGIN && echo '<hr>')
       <h1>Table of Content</h1>