diff --git a/front/src/Phaser/Game/GameScene.ts b/front/src/Phaser/Game/GameScene.ts index 0a44cea3..b356f5f0 100644 --- a/front/src/Phaser/Game/GameScene.ts +++ b/front/src/Phaser/Game/GameScene.ts @@ -1598,6 +1598,8 @@ ${escapedMessage} } }) .catch((reason) => console.warn(reason)); + + urlManager.clearHashParameter(); } catch (err) { console.warn(`Cannot proceed with moveTo command:\n\t-> ${err}`); } diff --git a/front/src/Url/UrlManager.ts b/front/src/Url/UrlManager.ts index cb0e1ed0..e881b167 100644 --- a/front/src/Url/UrlManager.ts +++ b/front/src/Url/UrlManager.ts @@ -58,6 +58,10 @@ class UrlManager { return this.getHashParameters()[name]; } + public clearHashParameter(): void { + window.location.hash = ""; + } + private getHashParameters(): Record { return window.location.hash .substring(1)