I have this piece of Javascript in my Site.master, right under the jquery import and above any link to my own scripts.
<script type="text/javascript">
jQuery.url = function (path) {
return '<%: Url.Action("Index","Home") %>' + path;
};
</script>
, "/" "" ().
:
$.url('Infringement/TaskDetail')