A critical vulnerability was discovered in React Server Components (Next.js). Our Systems Remain Fully Protected. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our Systems Remain Fully Protected. Learn More.
Hi,
I have a Controller like this:
And I'm able to retrieve the page by navigating to it like this - example.com/shop/products/product?id=123
However I can't retrieve the page by navigating to it like this - example.com/shop/products/product/123
I would like to go with this approach - [Modifying content routes] https://world.episerver.com/documentation/developer-guides/CMS/routing/ - and trying to implement it in my Global.asax.cs like this:
However it still doesnt work when I try to navigate to product page this way - example.com/shop/products/product/123 (well duuuh)
I have also tried to implement partial routing as explained here - http://joelabrahamsson.com/custom-routing-for-episerver-content/ - but I'm not sure how to use it after "Restoring tree-like URLs" part. By implementing the tutorial above I'm successfully receiving "product" part while debuging "GetPartialVirtualPath".
It would be also nice to limit that routing only for the product pages...
Any pointing out appreciated, cheers!
PS.: It's not kind of ecommerce or something alike, I just named pages like this for demonstrational purpose.