diff --git a/login/utils/helper.class.ts b/login/utils/helper.class.ts index f2f6b0d5..10dc4b46 100644 --- a/login/utils/helper.class.ts +++ b/login/utils/helper.class.ts @@ -46,7 +46,7 @@ export class Session { } params = (params && params.split("?").length > 1) ? params.split("?")[1] : params; for (var i = 0; i < params.split("&").length; i++) { - object[(params.split("&")[i]).split("=")[0]] = (params.split("&")[i]).split("=")[1]; + object[(params.split("&")[i]).split("=")[0]] = decodeURIComponent((params.split("&")[i]).split("=")[1]); } return object; diff --git a/utils/piwik/piwik.service.ts b/utils/piwik/piwik.service.ts index b72b4453..379f5e6b 100644 --- a/utils/piwik/piwik.service.ts +++ b/utils/piwik/piwik.service.ts @@ -27,11 +27,11 @@ export class PiwikService { let referrer = this.getReferrer(); let piwikId= ((siteId!=null)?siteId:properties.piwikSiteId); if(typeof location !== 'undefined' && piwikId){ - console.log("Piwik - View: " + pageURL, title); + // console.log("Piwik - View: " + pageURL, title); var url = properties.piwikBaseUrl+piwikId+"&rec=1&url="+StringUtils.URIEncode(pageURL)+"&action_name="+StringUtils.URIEncode(title)+ ((ua != null && ua.length > 0)?('&ua='+StringUtils.URIEncode(ua)):'')+ ((referrer != null && referrer.length > 0)?('&urlref='+StringUtils.URIEncode(referrer)):''); - console.log("Piwik - View: " + url); + // console.log("Piwik - View: " + url); // return Observable.of(new Object()); // for testing return this.http.get( url, {responseType: 'blob'}); // .do(request => console.info("Piwik request completed" ));