From 3efd39b973009d248fd399dc76b643946088dbc1 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 9 Feb 2022 13:29:46 -0800 Subject: web: editgroup and editor underscore redirect helpers --- python/fatcat_web/routes.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'python') diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py index a7fb34bd..186166bd 100644 --- a/python/fatcat_web/routes.py +++ b/python/fatcat_web/routes.py @@ -690,6 +690,11 @@ def editgroup_view(ident: str) -> AnyResponse: return render_template("editgroup_view.html", editgroup=eg, auth_to=auth_to) +@app.route("/editgroup_", methods=["GET"]) +def editgroup_underscore_view(ident: str) -> AnyResponse: + return redirect(f"/editgroup/{ident}") + + @app.route("/editgroup//diff", methods=["GET"]) def editgroup_diff_view(ident: str) -> AnyResponse: try: @@ -808,6 +813,11 @@ def editor_view(ident: str) -> AnyResponse: return render_template("editor_view.html", editor=entity) +@app.route("/editor_", methods=["GET"]) +def editor(ident: str) -> AnyResponse: + return redirect(f"/editor/{ident}") + + @app.route("/editor//editgroups", methods=["GET"]) def editor_editgroups(ident: str) -> AnyResponse: try: -- cgit v1.2.3