When using a like so:
<a href="../One/Two/Three/Four.aspx">Search</a>
Does the .. go back one directory from where it is clicked, or does it go to the root of the project structure?
edit: A better way to ask: I am referencing a .js file from my Master page, how do I keep the reference relative if I don’t know the depth of child pages that will use the Master page?
The
..folder means one level down from the current folder.The browser can’t go from the project root folder, because it doesn’t know where that root folder is, or what the project is for that matter. You can use
/at the beginning of an URL to go to the site root, but that may be different from the project root.