locked
url decode RedirectToAction mvc RRS feed

  • Question

  • User490317677 posted

    Hi :)

    My URL in RedirectToAction is like :

    return RedirectToAction("Notauthorized/Page#Create", "Account");

    And when its comes to browser URL will be like :

    http://localhost/Account/Notauthorized/Page%23Create

    Is there way i get this in browser: 

    http://localhost/Account/Notauthorized/Page#Create

    instead of this :

    http://localhost/Account/Notauthorized/Page%23Create

    Wednesday, August 21, 2019 7:54 AM

Answers

  • User197322208 posted

    try

    return new RedirectResult(Url.Action("Notauthorized/Page", "Account") + "#Create");

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, August 21, 2019 1:52 PM

All replies

  • User197322208 posted

    try

    return new RedirectResult(Url.Action("Notauthorized/Page", "Account") + "#Create");

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, August 21, 2019 1:52 PM
  • User490317677 posted

    Thanks :)

    Thursday, August 22, 2019 9:37 AM