You've already forked snikket-web-portal
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:
@@ -48,6 +48,10 @@ def context() -> typing.Mapping[str, typing.Any]:
|
|||||||
|
|
||||||
|
|
||||||
@bp.route("/<id_>")
|
@bp.route("/<id_>")
|
||||||
|
async def view_old(id_: str) -> quart.Response:
|
||||||
|
return redirect(url_for(".view", id_=id_))
|
||||||
|
|
||||||
|
|
||||||
@bp.route("/<id_>/")
|
@bp.route("/<id_>/")
|
||||||
async def view(id_: str) -> str:
|
async def view(id_: str) -> str:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user