From 3ff5b3279c267792b42f3636f4388b7e378244b1 Mon Sep 17 00:00:00 2001 From: Reinout Meliesie Date: Wed, 12 Mar 2025 17:02:27 +0100 Subject: [PATCH] Revert 71d0cd5e73 and e9f11a4d29 --- bookwyrm/settings.py | 2 +- bookwyrm/urls.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py index 653adbc6e..234282ca0 100644 --- a/bookwyrm/settings.py +++ b/bookwyrm/settings.py @@ -365,7 +365,7 @@ if (USE_HTTPS and PORT == 443) or (not USE_HTTPS and PORT == 80): NETLOC = DOMAIN else: NETLOC = f"{DOMAIN}:{PORT}" -BASE_URL = f"{PROTOCOL}://{NETLOC}/bookwyrm" +BASE_URL = f"{PROTOCOL}://{NETLOC}" CSRF_TRUSTED_ORIGINS = [BASE_URL] USER_AGENT = f"BookWyrm (BookWyrm/{VERSION}; +{BASE_URL})" diff --git a/bookwyrm/urls.py b/bookwyrm/urls.py index 497692db6..cd75eb0c0 100644 --- a/bookwyrm/urls.py +++ b/bookwyrm/urls.py @@ -835,8 +835,6 @@ urlpatterns = [ # Serves /static when DEBUG is true. urlpatterns.extend(staticfiles_urlpatterns()) -urlpatterns = [path("bookwyrm/", include(urlpatterns))] - # pylint: disable=invalid-name handler500 = "bookwyrm.views.server_error"