Fix strange 308 error code when using slash-less invite

That seems to be some Quart-internal redirect which isn’t executed
correctly (probably due to our makeshift error handlers). So I
make this a proper redirect instead.
This commit is contained in:
Jonas Schäfer
2021-02-06 15:06:15 +01:00
parent 5b812c773d
commit 85536d3748

View File

@@ -48,6 +48,10 @@ def context() -> typing.Mapping[str, typing.Any]:
@bp.route("/<id_>")
async def view_old(id_: str) -> quart.Response:
return redirect(url_for(".view", id_=id_))
@bp.route("/<id_>/")
async def view(id_: str) -> str:
try: