[Zope] Disabling url encoding using getURL in page templates
Dieter Maurer
dieter at handshake.de
Tue Nov 18 14:53:30 EST 2003
Will Stephenson wrote at 2003-11-18 15:59 +0000:
> I've set up a catalog of my sql database using the Catalog Anything technique,
> initially using the dtml search interface automatically generated by the
> catalog, but I've switched to the ZPT version, and don't know why my URLs
> returned from the catalog are always url-encoded, breaking the query string.
>
> This is where the URL that traverses to the database object is substituted
> into the search results report:
>
> <td><a href="someURL" tal:attributes="href result/getURL"
> tal:content="result/name">name goes here</a></td>
>
> Can anyone tell me how to stop this being encoded?
Try "getPath" instead of "getURL" when you do not want the
encoding. Note that almost surely, you will need to encode
yourself a bit in this case.
--
Dieter
More information about the Zope
mailing list