Merged in feat/BOOK-434-users-should-redirect-to- (pull request #3154)

* feat(BOOK-434): Moved redirect to middleware layer
* feat(BOOK-434): Updated to handle no filters available scenario

Approved-by: Erik Tiekstra
This commit is contained in:
Hrishikesh Vaipurkar
2025-11-14 09:51:44 +00:00
parent 3d121be74a
commit f23652b929
7 changed files with 85 additions and 24 deletions

View File

@@ -11,10 +11,10 @@ export const getUidAndContentTypeByPath = async (pathname: string) => {
const contentTypePathName = pathWithoutTrailingSlash.replace(`/${lang}`, "")
const { contentType, uid, error } = await resolveEntry(
const { contentType, seoFilters, uid, error } = await resolveEntry(
contentTypePathName,
lang ?? Lang.en
)
return { contentType, uid, error }
return { contentType, seoFilters, uid, error }
}