[FIX] auth_oauth: decorator @fragment_to_query_string must redirect to same route

bzr revid: chs@openerp.com-20140211145529-cp1rhf3hbhvq4sg4
This commit is contained in:
Christophe Simonis 2014-02-11 15:55:29 +01:00
parent 712811654a
commit 04e783e880
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ def fragment_to_query_string(func):
return """<html><head><script> return """<html><head><script>
var l = window.location; var l = window.location;
var q = l.hash.substring(1); var q = l.hash.substring(1);
var r = '/' + l.search; var r = l.pathname + l.search;
if(q.length !== 0) { if(q.length !== 0) {
var s = l.search ? (l.search === '?' ? '' : '&') : '?'; var s = l.search ? (l.search === '?' ? '' : '&') : '?';
r = l.pathname + l.search + s + q; r = l.pathname + l.search + s + q;