Hi,
I have one page in my website with different sections , each section has ID for menu navigation such as :
<div class="content-section-a" id="Home">
one of the section is a contact form , when user submit contact form I would like to redirect user after processing form data to the contact form section like:
www.xyz.com/#Contact
I am not sure how can I redirect user from my controller to the specific section.
Based on your setup if you're using MVC or pure Javascript to ensure this behaviour. Either way, in your success function you should return to the given page and to the anchor #Contact.
Redirect user to page
Hi, I have one page in my website with different sections , each section has ID for menu navigation such as :
one of the section is a contact form , when user submit contact form I would like to redirect user after processing form data to the contact form section like:
I am not sure how can I redirect user from my controller to the specific section.
Thanks
Hi, Fahad
Based on your setup if you're using MVC or pure Javascript to ensure this behaviour. Either way, in your success function you should return to the given page and to the anchor #Contact.
You can read more about SurfaceControllers for Umbraco here: https://our.umbraco.org/documentation/reference/routing/surface-controllers
is working on a reply...