Add redirect URL for mastodon user

This commit is contained in:
Jake Howard 2023-03-06 14:32:00 +00:00
parent c833752aec
commit f903dfcc8b
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -4,6 +4,7 @@ from django.conf import settings
from django.urls import include, path, re_path from django.urls import include, path, re_path
from django.views.decorators.cache import cache_control, cache_page from django.views.decorators.cache import cache_control, cache_page
from django.views.defaults import server_error from django.views.defaults import server_error
from django.views.generic import RedirectView
from django.views.static import serve from django.views.static import serve
from wagtail import urls as wagtail_urls from wagtail import urls as wagtail_urls
from wagtail.admin import urls as wagtailadmin_urls from wagtail.admin import urls as wagtailadmin_urls
@ -44,6 +45,10 @@ urlpatterns = [
path(".health/", include("health_check.urls")), path(".health/", include("health_check.urls")),
path("", include("website.legacy.urls")), path("", include("website.legacy.urls")),
path("api/", include("website.api.urls", namespace="api")), path("api/", include("website.api.urls", namespace="api")),
path(
"@jake",
RedirectView.as_view(url=f"https://{settings.ACTIVITYPUB_HOST}/@jake"),
),
path("", include(favicon_urls)), path("", include(favicon_urls)),
] ]