Welcome to WebmasterWorld Guest from 54.162.227.136

Forum Moderators: incrediBILL

Message Too Old, No Replies

href link change?

     
4:43 pm on Jun 22, 2010 (gmt 0)

5+ Year Member



I had a website I developed a few months back and suddenly it seems the links are all bad. What's happening is all the links I typed like so:

<a href="www.example.net/">visit this site</a>
Browsers assumes means "http://www.example.com/www.example.net/" as if it's a subdomain.

Is this a recent change of W3 standards in handling relative URLs? I could have sworn these all worked originally.

[edited by: tedster at 5:09 am (utc) on Jun 24, 2010]
[edit reason] switch to example.com - it can never be owned [/edit]

5:35 pm on Jun 22, 2010 (gmt 0)

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



there has not been a recent change.
they are working as they should

outbound links to external domains should begin with http://
8:11 am on Jun 23, 2010 (gmt 0)

WebmasterWorld Senior Member penders is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



Your links might work as expected in IE - but not other browsers. IE has been forgiving of omitted "http://" in the past.
9:19 am on Jun 23, 2010 (gmt 0)

WebmasterWorld Senior Member piatkow is a WebmasterWorld Top Contributor of All Time 5+ Year Member



As topr8 says, that is how it should work.
At a guess you had been using a browser that had previously been forgiving but a bug fix or upgrade has corrected this.

I had a similar problem some years ago with tables. One browser assumed a /tr when it found a new row but another didn't. I had been copying and pasting rows and hadn't noticed that I had lost the /tr.

This is why you should always test your site in IE and at least one other browser.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month