1
0
mirror of synced 2025-12-25 02:17:36 -05:00

React category / sub-landing page (#19635)

Re-work routes to use GlobalPage, implements TocLanding, bundle of minor cleanup / fixes
This commit is contained in:
Mike Surowiec
2021-06-02 09:28:39 -07:00
committed by GitHub
parent cf53f2e9d2
commit e0d9a061a3
24 changed files with 463 additions and 305 deletions

View File

@@ -12,7 +12,7 @@ export type BreadcrumbT = {
type Props = {}
export const Breadcrumbs = (props: Props) => {
const router = useRouter()
const pathWithLocale = `/${router.locale}${router.asPath}`
const pathWithLocale = `/${router.locale}${router.asPath.split('?')[0]}` // remove query string
const { breadcrumbs } = useMainContext()
return (