homepage Welcome to WebmasterWorld Guest from 54.167.96.124
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Browsers / Firefox Browser Usage and Support
Forum Library, Charter, Moderators: incrediBILL

Firefox Browser Usage and Support Forum

    
Firefox passes relative URL incorrectly
Firefox parses an extra level into the URL
jdkuehne




msg:1587705
 8:02 pm on Jan 17, 2005 (gmt 0)

I am using a JavaScript to reframe orphan pages that live in the first subirectory below the primary. The code is:

<!--
passpage = document.URL
if (top.location == self.location)
top.location.href="../master.html?" + passpage
//-->

IE, Opera, Mozilla, and others parse this correctly as:

http://www.example.com/sub/passpage

Firefox gives me:

http://www.example.com/sub/sub/passpage

Has anyone else run into this? Are there any solutions? Thanks

jdkuehne

[edited by: tedster at 8:16 pm (utc) on Jan. 17, 2005]
[edit reason] use example.com [/edit]

 

tedster




msg:1587706
 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Browsers / Firefox Browser Usage and Support
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved