Compare commits

...

1 Commits

Author SHA1 Message Date
Jonas Schäfer
85536d3748 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.
2021-02-06 15:06:15 +01:00

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: