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
+1 -17
View File
@@ -21,27 +21,11 @@ export default async function Page({
results: search(query: $query) {
__typename
... on PageInterface {
slug
}
... on NewsPage {
id
title
}
... on EventPage {
id
title
}
... on GenericPage {
id
title
}
... on VenuePage {
id
title
url
}
... on AssociationPage {
id
title
associationType
}
}