c# - How do I get MVC4 Url.Action method to include a hash before the controller -


currently have

url.action("action", "controller", new { area = "", otherparam=""}); 

which returns <host>/controller/action?params should.

i want return hash after host this: <host>/#/controller/action?params

extension url helper:

    public static string actionwithprefix(this urlhelper url, string action, string controller, object routevalues)     {           return regex.replace(url.action(action, controller, routevalues), @"(/[^/]*/)", @"$1#/");     } 

that return <appvirdir>/#/controller/action?params


Comments