summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-05 12:46:40 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-07 09:25:31 +0200
commite82796c90238559d207b6654ddc43a9b51c9e6ab (patch)
treecca5c335c1b1aa4091f3d5ac94ccde6f10f24675 /ogcp
parentb3c25a827be0704bf9655fa3dbcf8178870c1eb6 (diff)
views: fix invalid url redirection in client/server add
Remove 2 instances of redirect(url_for('servers')), this path does not exist anymore and causes the web to show a backtrace.
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index d4f3506..6a0d99c 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -1486,7 +1486,7 @@ def action_client_add():
if not form.validate():
flash(form.errors, category='error')
- return redirect(url_for('servers'))
+ return redirect(url_for('scopes'))
try:
ipaddress.ip_address(form.ip.data)
@@ -2554,7 +2554,7 @@ def server_add_post():
form = ServerForm(request.form)
if not form.validate():
flash(form.errors, category='error')
- return redirect(url_for('servers'))
+ return redirect(url_for('manage_servers'))
ip_port_str = form.ip.data + ":" + form.port.data
try:
get_server_from_ip_port(ip_port_str)