[PATCH] Convert redirect URL to string
Export this patch
Converts a missing redirect URL to string.
This is required for indieAuth authentication to work on som applications.
---
app/admin.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/admin.py b/app/admin.py
index 30b95ea..cf9156c 100644
--- a/app/admin.py
+++ b/app/admin.py
@@ -54,7 +54,7 @@ async def user_session_or_redirect(
if "redirect_url" in form_data:
redirect_url = form_data["redirect_url"]
else:
- redirect_url = request.url_for("admin_stream")
+ redirect_url = str(request.url_for("admin_stream"))
else:
redirect_url = str(request.url)
--
2.40.0.windows.1