[Zope] URL???

Michel Pelletier michel@digicool.com
Thu, 13 Apr 2000 11:35:57 -0700


Pierre Rougier wrote:
> 
> I have a strange problem:
> when I write :
> <A HREF="www.altavista.fr">altavista</A> in my zope index_html method,
> the link is printed, but try to reference to :
> http://localhost:8080/www.altavista.com
> 
> so, of course, the URL is not valid!

Yes, this is because you typed in a relative URL.  This is simply bad
HTML, not a bug in Zope.

If you want to reference an off-site resource in an HTML anchor tag, you
MUST specify 'http://machine/'.  Simply putting the machine name in
there will not do it for any platform.

I would suggest checking out any one of a gazillion good books on HTML.

-Michel