summaryrefslogtreecommitdiff
path: root/addons/auth_oauth/controllers
diff options
context:
space:
mode:
authorKersten Jeremy <jke@openerp.com>2014-03-05 17:43:21 +0100
committerKersten Jeremy <jke@openerp.com>2014-03-05 17:43:21 +0100
commit590b50f548e15530b14f4902ea4c59c5eec80500 (patch)
tree112b21072a0c03c07139e7a1a0f45c45a113b9ae /addons/auth_oauth/controllers
parent2cf5d26b1a2ac357332e08a09885d2798c26b69e (diff)
[FIX] Compare the real pathname with the new url and not the object windows.location
bzr revid: jke@openerp.com-20140305164321-xw05yeun302rizm4
Diffstat (limited to 'addons/auth_oauth/controllers')
-rw-r--r--addons/auth_oauth/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
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;