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 7802ded commit c12755eCopy full SHA for c12755e
page_analyzer/app.py
@@ -25,9 +25,10 @@ def index():
25
url_input = request.form.get('url')
26
# Проверка валидности
27
if not validators.url(url_input) or len(url_input) > 255:
28
- # Вместо рендера ошибки — редирект на /urls с этим же URL
+ # Редирект на /urls с этим же URL
29
+ return redirect(url_for('urls', url=url_input))
30
+ else:
31
return redirect(url_for('urls', url=url_input))
- return redirect(url_for('urls', url=url_input))
32
return render_template('index.html')
33
34
@app.route('/urls', methods=['GET', 'POST'])
0 commit comments