[AWS] Relative URLs
Patrice Freydiere
frett27@free.fr
Wed, 11 Jun 2003 21:49:43 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sorry for my explaination,
in my project (imgsvr), I use AWS for publishing pictures, the imgsvr generate
on the fly thumbnails and pages for browsing pictures.
So I don't use the Directory_Service option of AWS.
My problem is when a dynamically generated page contain an anchor coded as a
relative URL , the browser don't see or remember the current "Web Directory"
where the page is.
So when i click on the anchor, the browser search for the root to find the
image .. ??
I had to move to absolute URL to make it work ..
eg the following tag in a dynamic page from
http://localhost:1234/2001-05-08_Reunion_de_Famille/Apres_fete_chez_frangin_08052001
<br>
<a href="..">Repertoire precedent</a>
<br>
<hr>
appear in the browser status line as http://localhost:1234 whereas it should
be http://localhost:1234/2001-05-08_Reunion_de_Famille or
http://localhost:1234/2001-05-08_Reunion_de_Famille/..
??
Patrice
Le Mercredi 11 Juin 2003 21:27, Pascal Obry a écrit :
> Patrice,
>
> > one thing disturb me with AWS. When a dynamic page contains a relative
> > URL, eg <a href="index.htm">home page</a> , me browser understand the
> > page is in the root address of the web server ??
> >
> > what's wrong with that ?
>
> Nothing. BTW, you should always use relative URLs. With AWS the Web Root is
> the directory from where the executable is launched. It is possible to use
> the WWW_Root config feature to let the user a way to change that if
> necessary.
>
> BTW, what default root directory you was expecting ?
>
> Pascal.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iQEXAwUBPueH14ppebkTmmFWFAKIcgQAqJ0NHmVGrdBhQth6jyMSujzpxEGCB1sa
DWlDqs5qQq3pI/RVrl1Ks/CDvlJxhll3pMgddc/ZGZ6qdlBiHX8UFDcXMUIMAnAo
TbxjWDwrcicaZn9aLlGSmMWVEz8IZRgEtf4GLZDVMEEP1LFCrayAlceU6YIm6gF6
fdOyBsmNK88EAOLKBqpmCYpbbxJouYDJmjEzMXHlVwhkJuegO5osJ2WFL6G7q3bR
ZQv7fHchdytLvoIhuaPvWs/cohu7axuQgtx1ASS7kbPYthGcGFHtzmKsSjz9wWUx
YZvDucmZmwJcUOdPlCA872JX1hHukcOVz+uznwaaRJVhQ08wPA+pfJHh
=fU3H
-----END PGP SIGNATURE-----