Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change _search to use HTTP GET

- This makes it so that searches can be linked and refreshed
  • Loading branch information...
commit 51ef22ed9c9bbc1537fe48e18462c7ede4c53baf 1 parent 9082dc1
@joehillen joehillen authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  Network/Gitit.hs
  2. +1 −1  data/templates/sitenav.st
View
2  Network/Gitit.hs
@@ -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 ]
View
2  data/templates/sitenav.st
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.