Fixed pages breaking is tag filter is not present, passing tag filter from search page.

This commit is contained in:
2024-04-02 19:07:43 +02:00
parent abfe80f697
commit 4c88e37081
2 changed files with 2 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ export async function onBeforeRender(pageContext) {
...pageContext.urlQuery,
query: pageContext.urlParsed.search.q,
scope: pageContext.urlParsed.search.scope || 'results',
tagFilter: pageContext.tagFilter,
}), {
page: Number(pageContext.routeParams.page) || 1,
limit: Number(pageContext.urlParsed.search.limit) || 30,