diff --git a/octomode.py b/octomode.py index d021417..e024ca6 100755 --- a/octomode.py +++ b/octomode.py @@ -108,7 +108,7 @@ def index(): exts = ['.md', '.css'] for ext in exts: create_pad_on_first_run(name, ext) - return redirect(f"/{ name }/pad") + return redirect(f"/{ name }/pad/") else: return render_template('start.html', pad_url=APP.config['PAD_URL']) @@ -116,22 +116,22 @@ def index(): def main(name): return redirect(f"/{ name }/pad") -@APP.route('//pad') +@APP.route('//pad/') def pad(name): url = f"{ APP.config['PAD_URL'] }/{ name }.md" return render_template('iframe.html', url=url, name=name.strip(), pad_url=APP.config['PAD_URL']) -@APP.route('//stylesheet') +@APP.route('//stylesheet/') def stylesheet(name): url = f"{ APP.config['PAD_URL'] }/{ name }.css" return render_template('iframe.html', url=url, name=name.strip(), pad_url=APP.config['PAD_URL']) -@APP.route('//html') +@APP.route('//html/') def html(name): url = f"/{ name }/preview.html" return render_template('iframe.html', url=url, name=name.strip(), pad_url=APP.config['PAD_URL']) -@APP.route('//pdf') +@APP.route('//pdf/') def pdf(name): url = f"/{name}/pagedjs.html" return render_template('pdf.html', url=url, name=name.strip(), pad_url=APP.config['PAD_URL'])