fix: Publishing site in the wrong button

This commit is contained in:
Nathan Woodburn 2024-02-25 14:32:44 +11:00
parent c1f687b7b1
commit 4ccd401a94
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -217,7 +217,7 @@ def site_post():
with open(f'sites/{i["name"]}.json', 'w') as file:
json.dump(data, file)
return redirect('/publishing')
return redirect('/site')
response = make_response(redirect('/'))
response.set_cookie('auth', '', expires=0)
@ -289,7 +289,7 @@ def publish():
nginx.write_nginx_conf(i['name'])
threading.Thread(target=generate_ssl_and_write_nginx).start()
return redirect('/site')
return redirect('/publishing')