diff options
-rw-r--r-- | youtube/search.py | 2 | ||||
-rw-r--r-- | youtube/templates/base.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/youtube/search.py b/youtube/search.py index f9591fe..33e9251 100644 --- a/youtube/search.py +++ b/youtube/search.py @@ -63,7 +63,7 @@ def get_search_json(query, page, autocorrect, sort, filters): def get_search_page(): query = request.args.get('search_query') or request.args.get('query') if query is None: - return flask.render_template('base.html', title='Search') + return flask.render_template('home.html', title='Search') page = request.args.get("page", "1") autocorrect = int(request.args.get("autocorrect", "1")) diff --git a/youtube/templates/base.html b/youtube/templates/base.html index 8a0238a..3a5d9d0 100644 --- a/youtube/templates/base.html +++ b/youtube/templates/base.html @@ -22,7 +22,7 @@ </nav> <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..."> + {{ "autofocus" if request.path == "/" else "" }} required placeholder="Type to search..."> <button type="submit" value="Search" class="search-button">Search</button> <!-- options --> <div class="dropdown"> |