vuestorefront / vue-storefront-1

The open-source frontend for any eCommerce. Built with a PWA and headless approach, using a modern JS stack. We have custom integrations with Magento, commercetools, Shopware and Shopify and total coverage is just a matter of time. The API approach also allows you to merge VSF with any third-party tool like CMS, payment gateways or analytics. Newest updates: https://blog.vuestorefront.io. Always Open Source, MIT license.
https://www.vuestorefront.io
MIT License
18 stars 13 forks source link

[Bug]: If defaultStoreCode is set in a multistore setup, homepage results in error. #484

Open antonioglass opened 2 years ago

antonioglass commented 2 years ago

Describe the Bug

If I set a defaultStoreCode to "se", and enable multistore, the home page results in error - it loads endlessly. The rest pages work perfectly. The page "/" doesn't work but "/category.html" or "/se/category.html" both work perfectly. I also tried the latest VSF1 version but the same problem occurs.

Current behavior

No response

Expected behavior

The home page should open same as with the defaultStoreCode in the URL ("/se").

Steps to reproduce

  1. set defaultStoreCode
  2. enable multistore
  3. load home page

What version of Vue Storefront are you using?

1.12.2

What version of Node.js are you using?

12.2

What browser (and version) are you using?

Chrome

What operating system (and version) are you using?

macOS

Relevant log output

Deprecated action mappingFallback - use mapFallbackUrl instead.
      You can enable mapFallbackUrl by changing 'config.urlModule.enableMapFallbackUrl' to true
     null
`product/list` deprecated, will be not used from 1.12, use "findProducts" instead null
Entity cache is enabled for productList null
Result from ES for 5dfa0120a400a2485ae786e8be2134bb10602969b52c74c25488f994 (attribute),  ms=96 null
Result from ES for 2db0791617756d5e9e8e782767b9e34ea33b08a448239982684e2b99 (product),  ms=122 null
Taxes calculated server side, skipping null
Result from ES for e7ee6568a1fa9893c3cebcbb2726cd31d95e9434ec7c02f2679cdd24 (category),  ms=91 null
[dispatcher] Category query returned empty result url_path = page-not-found null
Redirect for resource not found : /page-not-found

Able to fix / change the documentation?

Code of Conduct

antonioglass commented 2 years ago

I think I found a fix which was not commited but included in the changelog: https://github.com/vuestorefront/vue-storefront/commit/2a8c3db5204ce203d8a6fd1d4f714a2bab23ea82 . Could you check it, please?

antonioglass commented 2 years ago

image