From b0108efa82695481293962b58ba6584e2a02d8a1 Mon Sep 17 00:00:00 2001 From: Mat Kelly Date: Wed, 4 Jul 2018 12:25:19 -0400 Subject: [PATCH] Allow replay text form to function without JS, closes #414 --- ipwb/replay.py | 6 ++++++ ipwb/webui/index.html | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ipwb/replay.py b/ipwb/replay.py index e585d2dd..2c24ba42 100755 --- a/ipwb/replay.py +++ b/ipwb/replay.py @@ -153,6 +153,12 @@ def commandDaemon(cmd): return Response('bad command!') +@app.route('/memento/*/') +def showMementosForURIRs_sansJS(): + urir = request.args.get('url') + return redirect('/memento/*/' + urir, code=301) + + @app.route('/memento/*/') def showMementosForURIRs(urir): urir = getCompleteURI(urir) diff --git a/ipwb/webui/index.html b/ipwb/webui/index.html index dd13e9a3..5a822487 100644 --- a/ipwb/webui/index.html +++ b/ipwb/webui/index.html @@ -20,8 +20,8 @@

ipwb

-
- + +