Copied to clipboard

Flag this post as spam?

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


  • Toppers 31 posts 155 karma points
    Aug 08, 2016 @ 14:42
    Toppers
    0

    Redirect is not loading master page...

    I have the following code in my SurfaceController:

      public ActionResult SubmitForgottenPassword([Bind(Prefix = "ForgottenPasswordViewModel")]ForgottenPasswordViewModel model)
        {
          if (ModelState.IsValid == false)
          {
            return CurrentUmbracoPage();
          }
    
          //do some process
    
          return RedirectToAction("ForgottenPasswordConfirmation");
        }
    
        public ActionResult ForgottenPasswordConfirmation()
        {
          return PartialView("Member/ForgottenPasswordConfirmation");
        }
    

    Everything gets called correctly, however, the ForgottenPasswordConfirmation page is not loading the Master page

    The Dashboard has ForgottenPasswordConfirmation document set up with a template which is calling the master page...

  • Toppers 31 posts 155 karma points
    Aug 08, 2016 @ 16:02
    Toppers
    100

    OK managed to figure it out - using this link: Boiler Template

    Basically I changed

    return RedirectToAction("ForgottenPasswordConfirmation");
    

    to

    return Redirect("/ForgottenPasswordConfirmation/");
    
Please Sign in or register to post replies

Write your reply to:

Draft