[Zope] HTTP_REFERER

Andreas Kostyrka andreas@mtg.co.at
Fri, 30 Jul 1999 19:45:47 +0200 (CEST)


On Fri, 30 Jul 1999, Katrin wrote:
 
> i use the HTTP_REFERER to get the path of the last page (something like:
> http://www.something.de/Ordner/page) but i need a way to get only the
> path like http://www.something.de/Ordner/.
> is there a way to do that?
 
<dtml-var "_.string.join(_.string.split(HTTP_REFERER,'/')[:-1],'/')">

Andreas
--
Andreas Kostyrka                     | andreas@mtg.co.at
phone: +54/1/7070750                 | phone: +43/676/4091256   
MTG Handelsges.m.b.H.                | fax:   +43/1/7065299
Raiffeisenstr. 16/9                  | 2320 Zwoelfaxing AUSTRIA