Skip to content

Commit

Permalink
feat(web): Level 2 navigation for parent subpages should be visible d…
Browse files Browse the repository at this point in the history
…espite theme (#17100)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
RunarVestmann and kodiakhq[bot] authored Dec 2, 2024
1 parent 1eef914 commit 0d59ea6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/web/pages/s/[...slugs]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,17 @@ Component.getProps = async (context) => {
}
}

if (isStandaloneTheme) {
try {
return {
page: {
type: PageType.STANDALONE_PARENT_SUBPAGE,
props: await StandaloneParentSubpage.getProps(modifiedContext),
},
}
} catch (error) {
if (!(error instanceof CustomNextError)) {
throw error
}
}

return {
Expand Down

0 comments on commit 0d59ea6

Please sign in to comment.