From 242bf7b5157bd4483011e6fd3c3dc867a8a553e7 Mon Sep 17 00:00:00 2001 From: Kevin Wallace Date: Fri, 4 Nov 2022 04:50:23 -0700 Subject: [PATCH] fixup! Fix URL generation when not at domain root Oops -- missed these two! Sorry for the noise; let me know if you'd like me to squash and resubmit. --- app/main.py | 2 +- app/templates/login.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 7caf870..058014f 100644 --- a/app/main.py +++ b/app/main.py @@ -733,7 +733,7 @@ async def outbox_by_public_id( if maybe_object.ap_type == "Article": return RedirectResponse( - f"/articles/{public_id[:7]}/{maybe_object.slug}", + f"{BASE_URL}/articles/{public_id[:7]}/{maybe_object.slug}", status_code=301, ) diff --git a/app/templates/login.html b/app/templates/login.html index 96297bd..5879158 100644 --- a/app/templates/login.html +++ b/app/templates/login.html @@ -7,7 +7,7 @@ {% if error %}

Invalid password.

{% endif %} -
+