[Catalyst] preserve the URL in browser box
Wade.Stuart at fallon.com
Wade.Stuart at fallon.com
Wed Jan 18 18:07:17 CET 2006
> On Wed, Jan 18, 2006 at 08:25:19PM +0200, raptor wrote:
> > postitem is called from a <FORM> in additem page. Now the problem
> > is that after posting an item the address in the browser url box is
> > left as 'postitem', but I want it to be 'additem'. Is it possible
> > if yes how ?
>
> Not to question your needs, but I see this often. Why is it important
> that the browser shows the new address at the expense of another round
> trip to the server?
I do it often because users bookmark junk. If the url that is shown after
an "add" is still the add action instead of the list or whatever
is the outcome of the add that just happened the bookmark goes to the
wrong section.
As a general rule I try to leave the user at a url state that can be
returned to like they expect. The extra redirect (round trip) is worth
it for my needs. And in fact is pretty light weight with keepalive.
-Wade
More information about the Catalyst
mailing list