I have a route config in MVC project:
routes.MapRoute(
name: "Client",
url: "Client/{webUi}/{lang}/{*controllerUrl}",
defaults: new
{
controller = "Client",
action = "Index",
lang = "en-GB"
}
);
I have a ClientController with method Index().
public ActionResult Index(string webUi, string lang, string controllerUrl)
{ ... }
I am trying to use URL:
Client/ZWS/{lang}/ImportBundles?from=bundle
However, when I am debugging the ClientController, I am getting that the value in controllerUrl is ImportBundles. The parameters from=bundle is just stripped away.
Is it possible to achieve?
Thanks in advance!
Edit:
I just tried to use this URL:
Client/ZWS/{lang}/ImportBundles/from/bundle
And it worked. But is it possible to use this format:
Client/ZWS/{lang}/ImportBundles?from=bundle