On 15 May 2003 at 21:13, Dieter Maurer wrote:
Bill Bell wrote at 2003-5-15 10:46 -0400:
I have a very simple site in which the menu is generated with the following code:
<dtml-with OSPN> <dtml-in "objectItems(['Folder'])" sort="id"> <dtml-if expr="id[0] in '0123456789'"> <a href="&dtml-id;"><dtml-var expr="id[2:].replace('_', ' ')"></a><br/> </dtml-if> </dtml-in> </dtml-with>
Each time one clicks on a menu item the corresponding page is displayed. There appears to be no non-trivial URL reference. owever, the URL grows.
You must look at the HTML source of your page (ask your browser for the page source).
When it does not contain complex relative URLs, then the URLs should not grow.
If this is wrong, please post the HTML source.
Here is the HTML. <html> <head> <base href="http://localhost:8080/OSPN/07Organisations_in_Your_Area/01Suicide_Prevent ion_Week/" /> <title></title> <style> * { font: normal 10pt Helvetica; } </style> </head> <body style="background-color: lightgrey; "> <div style="margin-left: 20px; width: 600px; "> <div style="margin-bottom: 20px; padding: 10px; width: 100%; text-align: center; background-color: white; font: bold 12pt; border: thin solid black; "> <span></span> <span style="font: bold 14pt; ">Suicide Prevention Week</span> - Ontario Suicide Prevention Network <br /><span style="font: bold 12pt cursive; ">- Promoting Networking -</span> </div> <div style="margin-right: 20px; width: 30%; float: left; border: thin solid black; background-color: white; padding: 10px; "> <div style="font: bold 12pt; margin-bottom: 10px; ">Welcome!</div> <span> <a href="01Suicide_Prevention_Week">Suicide Prevention Week</a><br/> <a href="02Upcoming_Events">Upcoming Events</a><br/> <a href="03News">News</a><br/> <a href="05Give_Us_Your_News">Give Us Your News</a><br/> <a href="06News_Received">News Received</a><br/> <a href="07Organisations_in_Your_Area">Organisations in Your Area</a><br/> <a href="08Suicide_Bereavement">Suicide Bereavement</a><br/> <a href="10Provincial_Advisors">Provincial Advisors</a><br/> <a href="20Board_of_Directors">Board of Directors</a><br/> <a href="50Background_and_History">Background and History</a><br/> <a href="70Membership_Information">Membership Information</a><br/> <a href="80Participating">Participating</a><br/> <a href="85Committees">Committees</a><br/> <a href="87Donating">Donating</a><br/> <a href="90Contacting_Us">Contacting Us</a><br/> <a href="95RSS_news_feed">RSS news feed</a><br/> <a href="99Search_this_website">Search this website</a><br/> </span> </div> <span><div style="padding: 10px; overflow: auto; background: white; width: 400px; height: 400px; font: normal 10pt Helvetica; position: absolute; top: 90px; "> Please feel free to download this <a href="SPWDoc">Suicide Prevention Week document.</a> </div></span> </div> </body> </html> Zope seems to be supplying the <base> tag as a friendly gesture. At least, it does not appear in any form in my code. What I have found, or seem to have found, is that if insert the following tag into my template the thing works ok. <base href="http://localhost:8080/OSPN/" /> Dieter, thanks very much for the tip. I would never have found this unaided. Bill