Fix navbar search form action
This commit is contained in:
parent
0ec784034a
commit
36e2b5925c
2 changed files with 3 additions and 2 deletions
|
|
@ -19,6 +19,7 @@ pub fn new(graph: &Graph) -> Router {
|
|||
.post(handlers::navigation::search),
|
||||
)
|
||||
.route("/redirect", get(handlers::navigation::redirect))
|
||||
.route("/search", get(handlers::navigation::search))
|
||||
.route(
|
||||
"/static/style.css",
|
||||
get(|| handlers::fixed::file("./static/style.css", "text/css")),
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
{% if config.node_selector or config.navbar_search %}
|
||||
<div class="nav-inputs">
|
||||
{% if nodes and config.node_selector %}
|
||||
<form class="node-selector" method="get" action="/redirect">
|
||||
<form class="node-selector" action="/redirect">
|
||||
<select class="node-selector" name="node">
|
||||
<option value="">Nodes</option>
|
||||
{% for node in nodes | filter(attribute="hidden", value=false) %}
|
||||
|
|
@ -46,7 +46,7 @@
|
|||
</form>
|
||||
{% endif %}
|
||||
{% if config.navbar_search %}
|
||||
<form class="navbar-search" method="post">
|
||||
<form class="navbar-search" action="/search">
|
||||
<input type="text" name="node" required/>
|
||||
<input type="submit" value="Find"/>
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue