Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fahad Ayub 71 posts 238 karma points
    Aug 23, 2016 @ 14:53
    Fahad Ayub
    0

    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.

    Thanks

  • Eric Petersson 32 posts 116 karma points
    Aug 24, 2016 @ 12:28
    Eric Petersson
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft