So i have three files.
html has:
<script type="text/javascript" src="~/Scripts/custom-notebook.js"></script>
custom-notebook.js line gives a 404 not found:
$.getScript('Scripts/custom-notebook-services.js'); //this gives 404
1. custom-notebook-services.js exists. It used to work but I changed html pathing to include the ~/
because I have a virtual application (yes MVC C#)..
2. Now nothing I do works (yes also searched around).
I have tried
$.getScript('../Scripts/custom-notebook-services.js');
and
$.getScript('../../Scripts/custom-notebook-services.js');
and
$.getScript('/Scripts/custom-notebook-services.js');
No luck:
Always gives me a 404 with path
domain.com/Controller/Scripts/custom-notebook-services.js
...instead of proper path:
domain.com/Scripts/custom-notebook-services.js