[Maypole] URL reconstruction

Jesse Sheidlower jester@panix.com
Tue, 4 May 2004 16:09:42 -0400


The authentication doc page discusses how to reconstruct the URL
in a template, like so:

[% SET args = request.args.join("/"); %]
...
<FORM ACTION="[% base %]/[%request.table%]/[% request.action %]/[%args%]">

So that one can, for example, take a detour to a login page and go
back to where you came from.

I'm finding that this isn't working for me--the "args" is the problem.
If I am on a page with links in the form

http://localhost/mydatabase/mytable/list/?page=10

and I click on such a link after a login has expired, the
ACTION line will be constructed as

http://localhost/mydatabase/mytable/list

i.e. the ?page=10 is not correctly picked up. What should I be
doing to get this to work?

Thanks.

Jesse Sheidlower