about summary refs log tree commit diff
path: root/templates
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-04-14T21·28+0200
committerVincent Ambo <tazjin@gmail.com>2018-04-14T21·28+0200
commitba33efd772575bbd51643fbf2aa176df3bced258 (patch)
treecc4cb1d6850b16f54144cdbc113ef8fa0aef7c20 /templates
parente0b1bc2627d65a759003842c4dc508e9f842da35 (diff)
refactor(handlers): Receive search terms via query parameters
There are several reasons for this, but one important one is that
people expect to be able to share search links.
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html2
-rw-r--r--templates/search.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html
index d4daa216c2..16ddf44c36 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -14,7 +14,7 @@
         <a class="navbar-brand" href="/">
           <h2>Converse</h2>
         </a>
-        <form class="form-inline" method="post" action="/search">
+        <form class="form-inline" method="get" action="/search">
           <input class="form-control mr-sm-2" type="search" placeholder="Search" name="query" aria-label="Search">
           <button class="btn btn-outline-success my-2 my-sm-0 mr-1" type="submit">Search</button>
           <a class="btn btn-outline-secondary my-2" href="/thread/new">New thread</a>
diff --git a/templates/search.html b/templates/search.html
index 95384b1caf..3bb30e5d60 100644
--- a/templates/search.html
+++ b/templates/search.html
@@ -14,7 +14,7 @@
         <a class="navbar-brand" href="/">
           <h2>Converse</h2>
         </a>
-        <form class="form-inline" method="post" action="/search">
+        <form class="form-inline" method="get" action="/search">
           <input class="form-control mr-sm-2" type="search" placeholder="Search" name="query" aria-label="Search">
           <button class="btn btn-outline-success my-2 my-sm-0 mr-1" type="submit">Search</button>
           <a class="btn btn-outline-secondary my-2" href="/thread/new">New thread</a>