From 590b50f548e15530b14f4902ea4c59c5eec80500 Mon Sep 17 00:00:00 2001 From: Kersten Jeremy Date: Wed, 5 Mar 2014 17:43:21 +0100 Subject: [PATCH] [FIX] Compare the real pathname with the new url and not the object windows.location bzr revid: jke@openerp.com-20140305164321-xw05yeun302rizm4 --- addons/auth_oauth/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/auth_oauth/controllers/main.py b/addons/auth_oauth/controllers/main.py index 4d96f083cdc..b6481f0ca28 100644 --- a/addons/auth_oauth/controllers/main.py +++ b/addons/auth_oauth/controllers/main.py @@ -31,7 +31,7 @@ def fragment_to_query_string(func): var s = l.search ? (l.search === '?' ? '' : '&') : '?'; r = l.pathname + l.search + s + q; } - if (r == l) { + if (r == l.pathname) { r = '/'; } window.location = r;