diff options
Diffstat (limited to 'youtube/search.py')
-rw-r--r-- | youtube/search.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube/search.py b/youtube/search.py index 7057747..d888c6c 100644 --- a/youtube/search.py +++ b/youtube/search.py @@ -64,6 +64,8 @@ def get_search_page(): query = request.args.get('search_query') or request.args.get('query') if query is None: return flask.render_template('home.html', title='Search') + elif query.startswith("https"): + return flask.redirect(f"/{query}") page = request.args.get("page", "1") autocorrect = int(request.args.get("autocorrect", "1")) |