add the PayloadRequest props to beforeDocumentControls custom component #15496
quentinhermiteau
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say you have a page localized in different language. And you want to create a button that redirects you to the published version of this page on your frontend.
If your page's slug is "test" for the local fr then your front URL would look like
http://my-front-domain.com/fr/testHowever, when you want to build this URL from the beforeDocumentControls, you can't, because you have no possibility to know which locale you are at.
Beta Was this translation helpful? Give feedback.
All reactions