Fix reload issue - mess query parameters after login

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@52612 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2018-06-29 10:55:17 +00:00
parent 2220677d99
commit 0f3e063ac8
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ export class Session{
if(params.split("&").length > 0){
object = {};
}
params =(params && params.split("?").length > 0 )?params.split("?")[1]:params;
for(var i=0; i<params.split("&").length; i++){
object[(params.split("&")[i]).split("=")[0]] = (params.split("&")[i]).split("=")[1];
}