From de0bf4ccecc86a77600fc42e6e065da7cf7c7ce2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BAnar=20Vestmann?= <43557895+RunarVestmann@users.noreply.github.com> Date: Thu, 12 Dec 2024 21:12:47 +0000 Subject: [PATCH] =?UTF-8?q?feat(web):=20Global=20search=20alias=20for=20'V?= =?UTF-8?q?innum=C3=A1lastofnun'=20(#17204)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- libs/content-search-toolkit/src/queries/search.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/content-search-toolkit/src/queries/search.ts b/libs/content-search-toolkit/src/queries/search.ts index d8bde3c182ea..82cdb3f98f53 100644 --- a/libs/content-search-toolkit/src/queries/search.ts +++ b/libs/content-search-toolkit/src/queries/search.ts @@ -35,6 +35,8 @@ export const searchQuery = ( // Handle aliases since the search engine has not been configured to support organization aliases if (queryString.trim().toLowerCase() === 'tr') { queryString = 'Tryggingastofnun' + } else if (queryString.trim().toLowerCase() === 'vmst') { + queryString = 'Vinnumálastofnun' } // * wildcard support for internal clients - eg. used by island.is app