I'm currently working on a project that uses Episerver CMS and Commerce. We've run into a situation where we would like to show a regular CMS page on a url path that normally leads to a Commerce catalog node. At the moment, the commerce catalogs seems to have presedence over cms content.
Current behaviour: /new-york/pizza -> Would currently resolve a catalog node from EPI Commerce and render this according to our catalog controller.
However, we would like to create a Episerver CMS page with the same URL and show a regular standard page. Currently, when doing this the catalog content is rendered
and the CMS page is ignored.
Desired behaviour: /new-york/pizza -> CMS Page and commerce content exists at this path. But we want render the CMS page.
Is it possible at any place during the routing lifecycle to check if the url can resolve a CMS page and then do that instead of resolving the commerce content? Bascially ensure that if a CMS page exist at the url it has presedence over the commerce content.
Thanks in advance!