rewriting redirects
This commit is contained in:
parent
4bb1c14abe
commit
f7105a30bf
1 changed files with 2 additions and 2 deletions
|
|
@ -108,13 +108,13 @@ def index():
|
|||
exts = ['.md', '.css']
|
||||
for ext in exts:
|
||||
create_pad_on_first_run(name, ext)
|
||||
return redirect(url_for('pad', name=name))
|
||||
return redirect(f'{ APP.config["APPLICATION_ROOT"] }{ name }/pad/')
|
||||
else:
|
||||
return render_template('start.html', application_root=APP.config["APPLICATION_ROOT"])
|
||||
|
||||
@APP.route('/<name>/')
|
||||
def main(name):
|
||||
return redirect(url_for('pad', name=name))
|
||||
return redirect(f'{ APP.config["APPLICATION_ROOT"] }{ name }/pad/')
|
||||
|
||||
@APP.route('/<name>/pad/')
|
||||
def pad(name):
|
||||
|
|
|
|||
Loading…
Reference in a new issue