Permalink
Browse files

Change _search to use HTTP GET

- This makes it so that searches can be linked and refreshed
  • Loading branch information...
joehillen committed Jan 1, 2014
1 parent 9082dc1 commit 51ef22ed9c9bbc1537fe48e18462c7ede4c53baf
Showing with 2 additions and 2 deletions.
  1. +1 −1 Network/Gitit.hs
  2. +1 −1 data/templates/sitenav.st
@@ -171,7 +171,7 @@ wikiHandlers =
guardBareBase >> getWikiBase >>= \b -> movedPermanently (b ++ "/") (toResponse ())
, dir "_activity" showActivity
, dir "_go" goToPage
, dir "_search" searchResults
, method GET >> dir "_search" searchResults
, dir "_upload" $ do guard =<< return . uploadsAllowed =<< getConfig
msum [ method GET >> authenticate ForModify uploadForm
, method POST >> authenticate ForModify uploadFile ]
@@ -15,7 +15,7 @@
$endif$
<li><a href="$base$/Help">Help</a></li>
</ul>
<form action="$base$/_search" method="post" id="searchform">
<form action="$base$/_search" method="get" id="searchform">
<input type="text" name="patterns" id="patterns"/>
<input type="submit" name="search" id="search" value="Search"/>
</form>

0 comments on commit 51ef22e

Please sign in to comment.