Timeline for How to get category URL in multiple stores
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 7, 2019 at 14:58 | comment | added | werfu | There's a rewrite for each store, albeit the requested path seemingly not ok. However this doesn't explain why the returned URL contains the current store code in the URL instead of the one I've passed to the get call. I must say though that the rewrite system seems very broken on the site, some products having lost their rewrite and only being accessible through built-in route. | |
Mar 7, 2019 at 14:28 | comment | added | HelgeB |
Can you check for a category for which you get the wrong url what's in the url_rewrite table? Run the following SQL: select * from url_rewrite where entity_type = 'category' and entity_id = [YOUR CATEGORY ID] ?
|
|
Mar 7, 2019 at 14:14 | comment | added | werfu | The category gets loaded, but the url returned when I call getUrl on it is still the url on the current loaded store. | |
Mar 7, 2019 at 3:15 | history | answered | HelgeB | CC BY-SA 4.0 |