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

1 Answer 1


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.