On Mon, Mar 3, 2008 at 2:15 PM, Moshe C. <[EMAIL PROTECTED]> wrote:
> Hi,
> Using Pylons 0.9.6 with the default ':controller/:action/:id'
> mapping.
> After requesting a page with some id, all the URLs which have no 'id'
> at all, have the previous id appended.
> This does not break anything since the next action needs no 'id', but
> is confusing since it appears in the browser address box.
>
> TIA
>
> Moshe
Hi Moshe,
This behaviour is controlled by how you're generating your urls. If
you do h.url_for('controller'), then any previous route settings will
be preserved. If you do h.url_for('/controller'), then any previous
route settings will be cleared.
See http://pylonshq.com/docs/module-routes.util.html#url_for for more
information.
Cheers,
Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---