I'm facing a problem concerning URL redirection inside Zope:
Suppose a try to make a redirection to a DTML document using it's
relative path instead of the absolute one:
DTML >> <dtml-call expr="RESPONSE.redirect('/abc/xpto?a=1&b=2&c=3')">
Python >> container.REQUEST.RESPONSE.redirect("/abc/xpto?a=1&b=2&c=3")
So far so good... The redirection process goes on apparently well.
But if I try to reach the variables I passed in the query string
(e.g., REQUEST["a"]), kaput... what a surprise... they don't exist
in the REQUEST object as I expected.
Apparently the variables are not stored in the REQUEST object.
Now the good thing is that the query string is not lost since its
stored in a special variable called QUERY_STRING. So if I execute:
<dtml-var expr="REQUEST['QUERY_STRING']">
I should get: "a=1&b=2&c=3"
I can always parse the string and get the values for each variable,
but is there any logical explanation for this?
Thanks in advance,
Vitor Varalonga