Redirecting to the correct map after login screen based on URL provided

This commit is contained in:
David Négrier
2020-05-13 00:02:39 +02:00
parent daa559738b
commit faadacddb6
11 changed files with 49 additions and 43 deletions
+2 -2
View File
@@ -49,7 +49,7 @@
{
"name":"exitSceneUrl",
"type":"string",
"value":"\/Floor1\/floor1.json"
"value":"..\/Floor1\/floor1.json"
}],
"type":"tilelayer",
"visible":true,
@@ -67,7 +67,7 @@
{
"name":"exitSceneUrl",
"type":"string",
"value":"\/Lyon\/lyon.json"
"value":"..\/Lyon\/lyon.json"
}],
"type":"tilelayer",
"visible":true,
+1 -1
View File
@@ -43,7 +43,7 @@
{
"name":"exitSceneUrl",
"type":"string",
"value":"\/Floor0\/floor0.json"
"value":"..\/Floor0\/floor0.json"
}],
"type":"tilelayer",
"visible":true,
Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

+1 -1
View File
@@ -37,7 +37,7 @@
{
"name":"exitSceneUrl",
"type":"string",
"value":"\/Floor0\/floor0.json"
"value":"..\/Floor0\/floor0.json"
}],
"type":"tilelayer",
"visible":true,
Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

+1 -1
View File
@@ -20,7 +20,7 @@ export class MapController {
getMaps() {
this.App.get("/maps", (req: Request, res: Response) => {
return res.status(OK).send({
mapUrlStart: URL_ROOM_STARTED
mapUrlStart: req.headers.host + "/map/files" + URL_ROOM_STARTED
});
});
}