If you ever worked with ASP.NET Themes and Skins, you know that stylesheet links are added to the head section of the HTML document.
The rendered URL to these stylesheets is always relative to location of the page being requested.
So, for a request to:
<link href="../App_Themes/Default/Styles.css" type="text/css" rel="stylesheet" />
which will make the web browser request for:
and it all works fine.
Well, it works fine until you need to navigate to:
You’ll get the same stylesheet reference and the browser will request for:
This happens because the web browser has no knowledge of what PathInfos are. It only accounts for the number of forward slashes (/).