1

I started playing with PWA Studio and installed Venia theme. I managed to setup it, but for every product route I get "That page could not be found. Please try again.". Data is fetched from Magento correctly.

Example of route https://magento-venia-concept-tfwxw.local.pwadev:8038/book-1.html

What could be the issue? Thanks.

2
  • What is the backend that you are pointing to in your .env file? Are you using the Magento cloud instance that installs by default?
    – circlesix
    Sep 7, 2019 at 1:20
  • @circlesix it's my local magento instance with laravel valet+.
    – Zdravko
    Sep 7, 2019 at 11:15

1 Answer 1

1

I found the solution. In https://github.com/magento/pwa-studio/blob/fa0a4c9b45757c272f6b745c546e8b61b1da40db/packages/venia-ui/lib/components/SearchBar/suggestedProduct.js#9 (same thing for categoryTile.js and categoryLeaf.js) .html is hardcoded in.

Just set the suffix to empty string and it will work.

1
  • Hello is any command need to run again after changes in pwa component , i mean js file ? Feb 3, 2022 at 9:40

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.