Forum Moderators: open

Message Too Old, No Replies

Removing trailing slash in <A element of news: protocol

         

vasiapup

11:58 am on Nov 26, 2006 (gmt 0)

10+ Year Member



Does anybody know if this could be fixed?
Browsers are automatically adding a trailing slash to this type of URLs:
news://8788365112506@newsgroups.example.net

Although the source code is without trailing slashes:
<A HREF="news://a535b$4569219e$54697c62$7238@cache10.example.net">Download</A>

Is this possible to be fixed?
Maybe this could be done with CSS or JavaScript?
Many thanks in advance!

[edited by: tedster at 8:29 pm (utc) on Nov. 26, 2006]
[edit reason] use example.net [/edit]

penders

8:48 pm on Nov 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hhhmmm, IE6 seems to add the extra slash, FF1.5 and Opera8 do not. I assume the extra slash is having an adverse effect when the link is followed?!

Have you tried actioning the link in the onlick event....

<a href="news://a535b$4569219e$54697c62$7238@cache10.example.net" onclick="location.href='news://a535b$4569219e$54697c62$7238@cache10.example.net'; return false;">Download</a>

Not sure whether that will override the default 'slash' behaviour if the onclick event is executed?