diff --git a/src/providers/sites.ts b/src/providers/sites.ts index 124b68e71..c86dc4f29 100644 --- a/src/providers/sites.ts +++ b/src/providers/sites.ts @@ -653,7 +653,8 @@ export class CoreSitesProvider { * @return A promise to be resolved if the site exists. */ siteExists(siteUrl: string): Promise { - return this.http.post(siteUrl + '/login/token.php', {}).timeout(this.wsProvider.getRequestTimeout()).toPromise() + return this.http.post(siteUrl + '/login/token.php', { appsitecheck: 1 }). + timeout(this.wsProvider.getRequestTimeout()).toPromise() .catch(() => { // Default error messages are kinda bad, return our own message. return Promise.reject({error: this.translate.instant('core.cannotconnecttrouble')});