Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi!
In our solution we have the following scenario:
/page-in-episerver-1/{city}-{address}-{id1}-{id2}
/page-in-episerver-1/{city}-{address}-{id1}-{id2}/page-in-episerver-2
Page-in-episerver-1 has a different pagetype than page-in-episerver-2.
We implemented routing for these pages (page-in-episerver-1 + page-in-episerver-2) using these articles:
http://world.episerver.com/blogs/Johan-Bjornfot/Dates1/2012/11/Partial-Routing/
http://joelabrahamsson.com/custom-routing-for-episerver-content/
When we want to post forms on the "page-in-episerver-2", we have the followng form-tag:
This result in an incorrect submit-url, because we did not implement the GetPartialVirtualPath() method in the partial router for page-in-episerver-2.
Do you have any tips on how to implement the GetPartialVirtualPath() method for the routing for page-in-episerver-2, when page-in-episerver-2 only exists below /page-in-episerver-1/{city}-{address}-{id1}-{id2}/ ?
How do I obtain the {city}-{address}-{id1}-{id2} part when I am calling GetPartialVirtualPath() from a handler (i.e. does not have the same requestcontext as when I enter the page) ?
Best regards
Jesper