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,
You can either have the current page/reference as a part of a model (check AlloyTech templates for inspiration) or use a bit of code to fetch it. I'd prefer filling in the model with whatever is needed from the controller.
The code alternative would be to get a PageRouteHelper from ServiceLocator and access the Page property.
BR,
Marija
How can i get a reference to the current page within a simple view or layout? I tried "PageReference.SelfReference" but to no avail.