| Welcome to WebmasterWorld Guest from 18.104.22.168 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|Firefox passes relative URL incorrectly|
Firefox parses an extra level into the URL
| 8:02 pm on Jan 17, 2005 (gmt 0)|
passpage = document.URL
if (top.location == self.location)
top.location.href="../master.html?" + passpage
IE, Opera, Mozilla, and others parse this correctly as:
Firefox gives me:
Has anyone else run into this? Are there any solutions? Thanks
[edited by: tedster at 8:16 pm (utc) on Jan. 17, 2005]
[edit reason] use example.com [/edit]
| 8:34 pm on Jan 17, 2005 (gmt 0)|
Do you mean you're getting the wrong URL for example.com/sub/master.html?
How about using the absolute URL for top.location.href - then no matter how deep your orphan pages may be in the directory structure, the same script will always find master.html
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved