Change search url path to match the YouTube path

Fixes #67

Signed-off-by: Jesús <heckyel@hyperbola.info>
This commit is contained in:
James Taylor
2021-07-01 17:33:12 -07:00
committed by Jesús
parent 4a9c1422e7
commit acfa31ff59
4 changed files with 13 additions and 15 deletions

View File

@@ -20,8 +20,8 @@
<nav class="home">
<a href="/youtube.com" id="home-link">YT Local</a>
</nav>
<form class="form" id="site-search" action="/youtube.com/search">
<input type="search" name="query" class="search-box" value="{{ search_box_value }}"
<form class="form" id="site-search" action="/youtube.com/results">
<input type="search" name="search_query" class="search-box" value="{{ search_box_value }}"
{{ "autofocus" if request.path == "/" else "" }} placeholder="Type to search...">
<button type="submit" value="Search" class="search-button">Search</button>
<!-- options -->