Welcome to WebmasterWorld Guest from 54.162.49.89

Forum Moderators: open

Message Too Old, No Replies

Opera troubles with relative links

     
7:21 pm on Sep 10, 2002 (gmt 0)

Preferred Member

10+ Year Member

joined:July 16, 2001
posts:545
votes: 0


I'm trying to pin down if this is just me, or if anyone else has this problem. (Or, is there a way to fix it?)

consider this:


<html>
<body>
<a href="?ref=true">True</a>
<a href="?ref=false">False</a>
</body>
</html

If i call this page directly, in opera as [mydomain.tld...] clicking those links fail.

I do this with IE, and it's worked fine, do I have to start spelling all these links out now?

2:42 am on Sept 11, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


Slade,

Mostly to bump your post up, but have you tried:

<html>
<body>
<a href="/?ref=true">True</a>
<a href="/?ref=false">False</a>
</body>
</html>

Or how about:

<html>
<head>
<BASE href="http://www.yourdomain.tld/index.html">
</head>
<body>
<a href="?ref=true">True</a>
<a href="?ref=false">False</a>
</body>
</html>

Just guessing at ways to make Opera connect...

Jim

5:33 am on Sept 11, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 5, 2002
posts:1510
votes: 0


try including the page filename as well. It might be that IE assumes that by not including a filename you are going back to the current file. Opera might not.

Just a guess.
Chris.

7:43 am on Sept 11, 2002 (gmt 0)

Junior Member

10+ Year Member

joined:June 20, 2002
posts:115
votes: 0


Guys,
is this <a href="?ref=false"> a valid syntax?
I've never seen such a thing and I'm in doubt that it is valid.
6:01 pm on Sept 22, 2002 (gmt 0)

New User

10+ Year Member

joined:Sept 22, 2002
posts:33
votes: 0


RFC 2396 states that a link to "?something" is a link relative to the current directory, not the current document (there are examples in the appendix). Opera works according to the specification here.