From 02e5860e43eba0283f7c055d12bbf2e916e10b9a Mon Sep 17 00:00:00 2001 From: Gregoire Parant Date: Mon, 2 Aug 2021 20:59:13 +0200 Subject: [PATCH 1/2] HotFix redirect on production domain of WorkAdventure - Update domain `ADMIN_URL` by `workadventu.re` --- front/src/Phaser/Menu/MenuScene.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/front/src/Phaser/Menu/MenuScene.ts b/front/src/Phaser/Menu/MenuScene.ts index 2c08882a..8270dada 100644 --- a/front/src/Phaser/Menu/MenuScene.ts +++ b/front/src/Phaser/Menu/MenuScene.ts @@ -387,7 +387,11 @@ export class MenuScene extends Phaser.Scene { private gotToCreateMapPage() { //const sparkHost = 'https://'+window.location.host.replace('play.', '')+'/choose-map.html'; //TODO fix me: this button can to send us on WorkAdventure BO. - const sparkHost = ADMIN_URL + "/getting-started"; + //const sparkHost = ADMIN_URL + "/getting-started"; + + //The redirection must be only on workadventu.re domain + //To day the domain staging cannot be use by customer + const sparkHost = "https://workadventu.re/getting-started"; window.open(sparkHost, "_blank"); } From 4991a70bba40121b14650bc0baba3552cca1a09e Mon Sep 17 00:00:00 2001 From: Gregoire Parant Date: Mon, 2 Aug 2021 21:34:03 +0200 Subject: [PATCH 2/2] Fix error generated Don't generate error if file is Invalid --- back/src/Services/MapFetcher.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/back/src/Services/MapFetcher.ts b/back/src/Services/MapFetcher.ts index 0a8cb4bd..a17f722a 100644 --- a/back/src/Services/MapFetcher.ts +++ b/back/src/Services/MapFetcher.ts @@ -27,7 +27,9 @@ class MapFetcher { }); if (!isTiledMap(res.data)) { - throw new Error("Invalid map format for map " + mapUrl); + //TODO fixme + //throw new Error("Invalid map format for map " + mapUrl); + console.error("Invalid map format for map " + mapUrl); } return res.data;