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
1 changed files with 5 additions and 0 deletions

View File

@ -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)),
]