[Zope] absolute_url and growing URLS????

Andrew Diller dillera@isc.upenn.edu
Wed, 31 May 2000 11:51:56 -0400


Hello:

I've got a strange problem I call "growing URLS"

When I click on links that take me around a section on folders on zope, the urls just keep
piling on each other. They seem to work, but now I'm getting some errors calling
dtml-methods.

Here is an example of a growing url:

http://www.somehere.edu:8080/pn21/aaa/index_html/managem



this really should be:


http://www.somehere.edu:8080/pn21/managem


as both MANAGEM and AAA are both peer folders together. As I jump from one folder to
another I need the url to refer to that absolute path, which is what I thought
absolute_url did!

Here is a snippet of the code that I use to jump from folder to folder, and causes the
growing urls:

<P> <font face=veranda,arial size=-1><B>Jump to section:</B>
<a href="<dtml-var absolute_url>/pn21">Main       </a> |
<a href="<dtml-var absolute_url>/WritersGuide">WG </a> |
<a href="<dtml-var absolute_url>/intro">Intro     </a> |
<a href="<dtml-var absolute_url>/story">Story     </a> |
<a href="<dtml-var absolute_url>/netuse">0        </a> |
<a href="<dtml-var absolute_url>/apps">1          </a> |
<a href="<dtml-var absolute_url>/nad">2           </a> |
<a href="<dtml-var absolute_url>/converge">3      </a> |

I thought that the absolute_url in these would reset the url in the browser, but the url
instead just grows and grows.


How can I stop this urls from growing?


-andy diller