We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 754eb9e commit 7802dedCopy full SHA for 7802ded
page_analyzer/app.py
@@ -23,8 +23,9 @@ def get_db_connection():
23
def index():
24
if request.method == 'POST':
25
url_input = request.form.get('url')
26
+ # Проверка валидности
27
if not validators.url(url_input) or len(url_input) > 255:
- # вызываем /urls явно или делаем редирект
28
+ # Вместо рендера ошибки — редирект на /urls с этим же URL
29
return redirect(url_for('urls', url=url_input))
30
31
return render_template('index.html')
0 commit comments