From f903dfcc8bd9a60c5dba20e925245c8d19ae7bf5 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 6 Mar 2023 14:32:00 +0000 Subject: [PATCH] Add redirect URL for mastodon user --- website/urls.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/website/urls.py b/website/urls.py index 81a1a01..8913643 100644 --- a/website/urls.py +++ b/website/urls.py @@ -4,6 +4,7 @@ from django.conf import settings from django.urls import include, path, re_path from django.views.decorators.cache import cache_control, cache_page from django.views.defaults import server_error +from django.views.generic import RedirectView from django.views.static import serve from wagtail import urls as wagtail_urls from wagtail.admin import urls as wagtailadmin_urls @@ -44,6 +45,10 @@ urlpatterns = [ path(".health/", include("health_check.urls")), path("", include("website.legacy.urls")), path("api/", include("website.api.urls", namespace="api")), + path( + "@jake", + RedirectView.as_view(url=f"https://{settings.ACTIVITYPUB_HOST}/@jake"), + ), path("", include(favicon_urls)), ]