I'm facing an issue with my MVC4 application. I have set up a masterpage with "bundleconfig" to manage CSS and JS files. Everything seems to be working fine, for example when I access "localhost1234:/Admin/Index" everything displays correctly. However, the problem arises when I visit the page "localhost1234:/Admin/Edit/2" (where 2 is the user id for updating) as it fails to find references in the main.js file.
The content of main.js is as follows:
head.js("../assets/js/skin-select/jquery.cookie.js");
head.js("../assets/js/skin-select/skin-select.js");
head.js("../assets/js/clock/date.js");
The browser's error console reports that the references are not found:
404 Not Found - localhost:1234/Admin/assets/js/jquery.cookie.js"
jquery.cookie.js
404 Not Found - localhost:1234/Admin/assets/js/bootstrap.js"
Why is the view name (Admin) being added in front of the path in the main.js file??? Any assistance would be greatly appreciated.