Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add RedirectToAction Support for MVC Modules #2170

Closed
1 task done
SkyeHoefling opened this issue Jul 18, 2018 · 0 comments
Closed
1 task done

Add RedirectToAction Support for MVC Modules #2170

SkyeHoefling opened this issue Jul 18, 2018 · 0 comments

Comments

@SkyeHoefling
Copy link
Contributor

Description

Currently the only way to handle redirects in a DNN MVC Controller is using the DnnUrlHelper with the MVC command Redirect. It is very common to start scattering your controller code with Actions that look like the snippet below:

Existing API

public ActionResult SomeAction()
{
    // omitted code
    ...
    return Redirect(Url.Action("Index", "Home"));
}

Proposed New API

public ActionResult SomeAction()
{
    // omitted code
    ...
    return RedirectToAction("Index", "Home");
}

The proposed new API is not to replace the existing API but another way to do the same thing. Both APIs are valid in aspnet mvc and we should support both.

Affected version

Since the DnnUrlHelper API was added to the DnnController in 9.2 it only applies to 9.2

  • 9.2

Affected browser

Not Applicable

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant