adobe / commerce-cif-connector

AEM Commerce connector for Magento and GraphQL
Apache License 2.0
43 stars 27 forks source link

Product Browser not working after refresh and category/product was selected #110

Open geertsmichael opened 4 years ago

geertsmichael commented 4 years ago

Expected Behaviour

After refreshing the product browser when a category or product was selected, results in a broken product Browser. I am expecting to stil see all catalogs and the parent categories.

Actual Behaviour

After refreshing the product browser when a category or product was selected, results in a broken product Browser.I want to provide a link to a category or product, which will not render the catalogs anymore. Instead the selected category or products becomes the root of the Product Browser and I cannot switch to another catalog anymore.

Steps to Reproduce

  1. Open http://localhost:4502/libs/commerce/gui/content/products.html/var/commerce/products
  2. Select a Catalog, a category and then a sub-category. This still works fine
  3. Now refresh the Product browser or use the url in the address bar and open it in a new tab
  4. Now the catalogs and categories are gone, and I only see the product. On top I also get an error message in the 'left pane'

Platform and Version

AEM 6.4.5 & CIF 0.9.0 (On CIF 0.8.0 we don't have this issue)

Sample Code that illustrates the problem

Schermafbeelding 2020-03-30 om 11 35 51
cjelger commented 4 years ago

You should rather check the logs of your AEM instance and check any error message to find out why the loading of the categories has failed. But this is probably not a bug related to the scenario you describe, this works perfectly fine for me.