web: simplify link generation for search

This commit is contained in:
2026-05-25 22:37:19 +02:00
parent a58e2b224e
commit af8c3fe768
5 changed files with 36 additions and 59 deletions
+3
View File
@@ -174,6 +174,9 @@ MEDIA_URL = "/media/"
WAGTAIL_SITE_NAME = "dnscms"
WAGTAIL_ALLOW_UNICODE_SLUGS = False
# Headless: the Next.js frontend uses trailing-slash-free URLs, so strip
# trailing slashes from links generated by Wagtail (e.g. the GraphQL `url` field).
WAGTAIL_APPEND_SLASH = False
WAGTAILIMAGES_IMAGE_MODEL = "images.CustomImage"
WAGTAILIMAGES_EXTENSIONS = ["avif", "gif", "jpg", "jpeg", "png", "webp", "svg"]