New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the Community Exchange, where community members ask and answer questions about DNN. To get started, just start typing your question below and either select one of the suggested questions or ask a new question of your own.

Browser URL has additional details when we reditect using Redirect(ModuleRoutingProvider.Instance()?

Return to previous page

  • 1/22/2018
  • 1188 Views

Question:

ketan val 7 years ago
  1. I am trying to redirect to an action in my controller-classes.

We found below solution

http://www.dnnsoftware.com/forums/threadid/528496/...

var routeVals = TypeHelper.ObjectToDictionary(RouteData.Values);

routeVals["controller"] = "Users";

routeVals["action"] = "WelcomePage";

return Redirect(ModuleRoutingProvider.Instance().GenerateUrl(routeVals, ModuleContext));

http://bhmsqldev01.crcins.com/dnn/targetappraisers...moduleId/2665/Count/2/controller/Users/action/WelcomePage?Keys=System.Collections.Generic.Dictionary%602+KeyCollection[System.String,System.Object]&Values=System.Collections.Generic.Dictionary%602+ValueCollection[System.String,System.Object]

http://bhmsqldev01.crcins.com/dnn/targetappraisers/ Log-In-Renew-Coverage/ WelcomePage

Sign In to Participate
Or register to become a member