[FIX] Compare the real pathname with the new url and not the object windows.location
bzr revid: jke@openerp.com-20140305164321-xw05yeun302rizm4
This commit is contained in:
parent
2cf5d26b1a
commit
590b50f548
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue