I have an app with links like so in default.aspx...
<link href="Styles/smoothness/jquery-ui-1.8.14.custom.css" rel="stylesheet" type="text/css" />
<script src="Scripts/json2.min.js" type="text/javascript"></script>
<script src="Scripts/jquery-1.6.2.min.js" type="text/javascript"></script>
<script src="Scripts/jquery-ui-1.8.14.custom.min.js" type="text/javascript"></script>
<script src="Scripts/jquery.tmpl.min.js" type="text/javascript"></script>
Once I added URL Routing it broke my relative paths. So if I get deep into a route then the page can't find images, scripts, etc. I would imagine that my jQuery service calls are probably broken as well. Is there a way other than adding "/" to the beginning of every relative reference to fix this. In my global.asax I currently have...
void RegisterRoutes(RouteCollection routes)
{
routes.MapPageRoute(
"EntityRoute",
"{entityID}",
"~/Default.aspx");
routes.MapPageRoute(
"GlobalSearchRoute",
"{entityID}/{guarantorID}/{guarDOB}",
"~/Default.aspx");
}
Can I add something here that would allow my relative paths to function without changing all of those paths in the site?