[Zope] Transparent Redirect - Need To Allow QueryString

Edward Pollard pollej@uleth.ca
Fri, 17 Jan 2003 11:57:38 -0700


I need a transparent redirection from one folder to another, to allow
for proper bookmarking.

Basically, different "Departments" have different points in a document
tree, all keyed on a querystring variable.

i.e. "docTree/index_html?dept=4" gives you accounting
"docTree/index_html?dept=7" gives you IT

Now, we want to give areas that don't have a homepage the ability to use
this system as their homepage. That is "/department/accounting" gives
you "docTree/index_html?dept=4". But, we want the URL to stay on the
first visit as "/department/accounting". This will allow for users to
stick the original URL in their bookmarks list.

I found some good information on Zope.org, which gave me this code

<!--#call "RESPONSE.setBase('http://www.mydomain.com/target_folder')"-->

   <dtml-with target_folder>
        <dtml-var index_html>
   </dtml-with>

However, this code does not allow me to use the querystring ("?dept=4").

Can anyone reccomend how I can do this with DTML, or recommend an
alternative solution.

Edward