I am trying to add link using cms block in pwa venia theme. But issue is when I click on link it reloads the whole page, which does not happen when I add link using js file. Does any have any idea how can I solve this isse?
Thanks in advance
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
It happens because Text and Html components in pagebuilder render data using dangerouslySetInnerHTML, so you get simple tag. If you use ButtonItem in Buttons component react-router-dom will be used and navigation will trigger without reloading the PWA. You can also choose button type "link" to make it look like a link.