MOBILE-3320 site: Make sure site URL doesn't have params
parent
1d5fbb3bd7
commit
4a48996ba8
|
@ -125,6 +125,7 @@ export class CoreSite {
|
||||||
public loggedOut?: boolean,
|
public loggedOut?: boolean,
|
||||||
) {
|
) {
|
||||||
this.logger = CoreLogger.getInstance('CoreSite');
|
this.logger = CoreLogger.getInstance('CoreSite');
|
||||||
|
this.siteUrl = CoreUrlUtils.removeUrlParams(this.siteUrl); // Make sure the URL doesn't have params.
|
||||||
this.setInfo(infos);
|
this.setInfo(infos);
|
||||||
this.calculateOfflineDisabled();
|
this.calculateOfflineDisabled();
|
||||||
|
|
||||||
|
@ -1460,7 +1461,7 @@ export class CoreSite {
|
||||||
|
|
||||||
// Use the wwwroot returned by the server.
|
// Use the wwwroot returned by the server.
|
||||||
if (config!.httpswwwroot) {
|
if (config!.httpswwwroot) {
|
||||||
this.siteUrl = config!.httpswwwroot;
|
this.siteUrl = CoreUrlUtils.removeUrlParams(config!.httpswwwroot); // Make sure the URL doesn't have params.
|
||||||
}
|
}
|
||||||
|
|
||||||
return config!;
|
return config!;
|
||||||
|
|
Loading…
Reference in New Issue