how to access page metadata client side #7637
Unanswered
Jonathan-Peck
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Afaik we don't have a good way to do that currently. I'd like to put the current doc data into React context but until then you'll have to swizzle DocItem to pass extra props to the breadcrumb 😅 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
we swizzled the DocBreadcrumbs component with the intention of adding a button that will redirect the browser somewhere. We would like to include as part of that redirect the current pages title. We tried accessing the props that are fed to the component, but it appears to be a null/blank object.
what is the correct way to access the current pages metadata including page title?
Beta Was this translation helpful? Give feedback.
All reactions