I have an upgraded site from CMS 7, Commerce R3 to 7.5. As the url handling of commerce items have changed I need reroute the items to fit the customers old url behavior. I need some pointers in the right direction.
The current urls looks like this:
How do I achieve this in commerce 7.5?
Currently i´m using the default hierarchialrouter with SEO-flag set to true.
I'm not sure about your <cmspage>, but I'm afraid you'll have to write a custom router for this. For the hierarchialrouter, there will be two types of URL:
- if Seo-flag set to true: <host>/<lang>/<seo-uri>
- if seo-flag set to false: <host>/<lang>/<catalog>/<node>/<node>/<entry-name>
Hierarical router provides what Quan hav eexpliane dto you.
with assumption that productcode.aspx is a SEO URL Key from url <host>/<lang>/<cmspage>(n)/productcode.aspx, Partial routing can be an approach to achive this can be achived by excluding the segment that comes after lang.