[FIX] Redirect user from /web if a get redirect is found.
authorKersten Jeremy <jke@openerp.com>
Fri, 21 Mar 2014 11:50:18 +0000 (12:50 +0100)
committerKersten Jeremy <jke@openerp.com>
Fri, 21 Mar 2014 11:50:18 +0000 (12:50 +0100)
commit1d4b43eb38cd1e3064d1fdd4b777c819f4c04865
treed30bc19665fc224b1c7541b94f632c9dabdeb8dc
parent0e4cfe0add83bc96b508d4e982126d52f3145c74
[FIX] Redirect user from /web if a get redirect is found.

If you redirect an user not logged, into /web?redirect=xxx, he was correctly redirect to /web/login?redirect=/web?redirect=xxx. But when user come back on /web?redirect=xxx, he was not redirected to xxx.

The question should be to have only one behavior when we redirect people, as well /web?redirect as well /web/login?redirect. But because we use both in actual code, we need to accept both for retro-compatibility.

bzr revid: jke@openerp.com-20140321115018-x4e3l3d1v0tp0dyo
addons/web/controllers/main.py