Thanks, it really helped (but the syntax seems to be <a tal:attributes="href<br>string:${here/folderB/absolute_url}/ - not the _path ending...<br>Ole<br><br><div><span class="gmail_quote">On 2/14/06, <b class="gmail_sendername">
Peter Bengtsson</b> <<a href="mailto:peter@fry-it.com">peter@fry-it.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This will work<br><a tal:attributes="href<br>string:${here/folderB/absolute_url_path}/scriptobject?Parameter=$variable">Text</a><br><br><br>On 2/13/06, Ole Johan Tennvassås <<a href="mailto:oj.tennvassaas@gmail.com">
oj.tennvassaas@gmail.com</a>> wrote:<br>> Sorry for late reply - have been away.<br>><br>> Cant get this to work! I hope I can avoid to use an absolute URL path.<br>> What i want is, as you say, to let the server generate as much of the URL as
<br>> possible. To be more spesific, the zpt whith the calling href (located in<br>> "folderA") calls a script with a construct like this:<br>> <a tal:attributes="href<br>> string:folderB/scriptobject?Parameter=$variable">Text</a>
<br>> The effect of this is that Zope generates a link to the URL<br>> <a href="http://myserver/application/folderA/folderB/scriptobject?.">http://myserver/application/folderA/folderB/scriptobject?.</a>..<br>> and after this link is used to call the script in folderB, the script calls
<br>> a zpt in folderA again. Now, all links in this zpt gets /folderB added in<br>> their path! If you have some more tips about this, or could point me to some<br>> examples or documentation that could explain to me how this is supposed to
<br>> work, it would be great!<br>><br>> Regards<br>> Ole<br>> >Instead of writing links like this::<br>> ><br>> > <a href="folderB/object">object</a><br>> ><br>> >write them like this::
<br>> ><br>> > <a tal:attributes="href<br>> folderB/object/absolute_url_path">object</a><br>><br>> ><br>> >I know it's more typing but it will solve all your problems. I always
<br>> >let the server have a part in generating URLs and I never suffer from<br>> >problems like this.<br>><br>><br><br><br>--<br>Peter Bengtsson,<br>work <a href="http://www.fry-it.com">www.fry-it.com</a>
<br>home <a href="http://www.peterbe.com">www.peterbe.com</a><br>hobby <a href="http://www.issuetrackerproduct.com">www.issuetrackerproduct.com</a><br></blockquote></div><br>