[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:
Kersten Jeremy 2014-03-05 17:43:21 +01:00
parent 2cf5d26b1a
commit 590b50f548
1 changed files with 1 additions and 1 deletions

View File

@ -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;