DevGroup-ru/dotplant2

Categories show bug

Closed this issue · 4 comments

In administration I have "Catalog" like first category.
Now if I add new category, for example "Rings" and save the new category and then press the preview button, this will be in "Catalog" category with url: /catalog and there is no way for see the new categories.
every category have the same url /catalog, and if I try to change manually for example with /rings ( slug name ) will be return 404 page. I try with catalog/rings and nothing change.
it is a bug ?

Nks commented

@gomonkey yes, it's a bug. Now you can resolve this issue like this:

  • add category with URL which you want
  • go to the database, open table "routes"
  • in "url_template" find "static_part":"catalog" and change it to "static_part":"ring" in 1nd and 2nd record
  • clear cache from backend

I found http://example.com/backend/route/index controller which can do something with routes, but now it's not working because jquery trying to call when page not loaded fully and I think that javascript on edit page isn't works too.

Catalog root model should also have slug 'ring'.
Static part in route is for some little performance optimization.
Make sure you have matching static_part and root category slugs.

@gomonkey also new root category should be in the new category group and you should change param category_group_id in table routes

closed due to lack of information in passed year