Copied to clipboard

Flag this post as spam?

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


  • rakesh 9 posts 88 karma points
    Apr 22, 2017 @ 13:56
    rakesh
    0

    Redirect from rendermvccontroller

    Hi guys iam new to umbraco and only 2 months old in umbraco 7.5.

    In my website i have 2 areas public and member. For a user to become member they need to undergo signup process. Under this process we are sending an link in an email to the user and when they click on the link which is a link to rendermvccontroller action method. i am able to get the data which is stored as md5 hashed string but iam unable to redirect him to home page which is public page. Home is documentType.

    Also if link is not valid then where to navigate the user so that he knows that link is invalid or expired. Can you guys help me with this.

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Apr 26, 2017 @ 15:49
    Alex Skrypnyk
    0

    Hi Rakesh

    What is your problem exactly?

    To redirect user?

    You can use this code:

    var pageUrl = Umbraco.TypedContent(pageId);
    
    return Redirect(checkoutPage.Url);
    

    Hope it will help you, Rakesh.

    /Alex

  • rakesh 9 posts 88 karma points
    Apr 27, 2017 @ 09:52
    rakesh
    0

    Nops its giving error Message: "DataTokens must contain an 'umbraco-doc-request' key with a PublishedContentRequest object"

  • Azaz ul haq 4 posts 72 karma points
    Aug 06, 2018 @ 07:49
    Azaz ul haq
    0

    Did you get any answer? @rakesh

  • Marcio Goularte 374 posts 1346 karma points
    Aug 06, 2018 @ 13:43
    Marcio Goularte
    0

    Hi Azaz,

    Please show your code.

Please Sign in or register to post replies

Write your reply to:

Draft