SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: Help with base tag
-
Aug 6, 2009, 19:07 #1
- Join Date
- Dec 2007
- Posts
- 40
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Help with base tag
I'm having trouble using the base tag. Here is what I'm doing:
HTML Code:<base href="http://www.mydomain.com/somefolder/" />
HTML Code:<a href="/link" />link</a>
I can fix it by changing the link to either:
HTML Code:<a href="./link" />link</a>
HTML Code:<a href="link" />link</a>
Removing the trailing slash from the base href does not affect the problem:
HTML Code:<base href="http://www.mydomain.com/somefolder" />
-
Aug 7, 2009, 01:59 #2
A forward slash "/" at the beginning of a path starts it at the root regardless of the current path or base location.
Bookmarks