diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/fatcat_web/routes.py | 10 |
1 files changed, 10 insertions, 0 deletions
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_<string(length=26):ident>", methods=["GET"]) +def editgroup_underscore_view(ident: str) -> AnyResponse: + return redirect(f"/editgroup/{ident}") + + @app.route("/editgroup/<string(length=26):ident>/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_<string(length=26):ident>", methods=["GET"]) +def editor(ident: str) -> AnyResponse: + return redirect(f"/editor/{ident}") + + @app.route("/editor/<string(length=26):ident>/editgroups", methods=["GET"]) def editor_editgroups(ident: str) -> AnyResponse: try: |