@ -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):
@ -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>