Url.Action or filterContext.Result = new RedirectToRouteResult(new RouteValueDictionary { { "controller", ControllerString }, { "action", ActionString } }); does not work
Hi. When I use Url.Action or filterContext.Result to return the relative path Sitefinity returns/rewrite the defualt to Sitefinity/Themes?controller=controllername&action=actionname. Any ideas of to what is causing this? Is there a simple way to have a URL with the following format: /controllername/actionname everytime I use Url.Action in the controller of filterContext.Result.
Thanks.
Hello Andrew,
Thank you for contacting Sitefinity support.
Url.Action or filterContexts.Result with the route you create with
new
RouteValueDictionary
"controller"
, ControllerString ,
"action"
, ActionString