On Wed, 31 Jul 2002 14:54, you wrote:
On Wed, 31 Jul 2002, David Beech wrote:
Hello folks,
Can anyone explain why my Zope apps generate loooooooooooong urls?
It seems that each action (clicking a button or an href) results in the target (the object being called) being appended to the current url which is submitted to the server.
I've pored over the various Zope references but nothing sticks out as obvious.
I've tried specifying the path directly to a Zope object in both Python scripts and dtml documents, and also used relative linking where possible. The effect is always the same and apart from causing the server to overwork it also leads to problems with database operations.
It is relative links that cause this problem. Absolute links don't have this behavior. Since making absolute links is so trivial I don't think I build sites anymore where every link is not absolute. object.absolute_url() will create an absolute url to an object in zope.
Thanks for that. You're suggestion is in keeping with Chris McD's also. Great minds think alike. cheers