adding application_root to post form in the start screen

This commit is contained in:
manetta 2022-03-11 16:51:52 +01:00
parent a30972e87d
commit 4d6c97fb46
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ def index():
create_pad_on_first_run(name, ext)
return redirect(url_for('pad', name=name))
else:
return render_template('start.html')
return render_template('start.html', application_root=APP.config['APPLICATION_ROOT'])
@APP.route('/<name>/')
def main(name):

View File

@ -6,7 +6,7 @@
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='main.css') }}">
</head>
<body class="start-page">
<form action="/" method="POST">
<form action="{{ application_root }}" method="POST">
<h1><input type="submit" value="open"> <input type="text" name="name"> <em class="octomode">in octomode</em></h1>
</form>
</body>