Fix screen renaming when same route already exists

This commit is contained in:
Andrew Kingston 2022-03-08 14:14:57 +00:00
parent fe95844569
commit 2b19986550
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"baseUrl": "http://localhost:4100", "baseUrl": "http://localhost:4100",
"video": false, "video": true,
"projectId": "bmbemn", "projectId": "bmbemn",
"env": { "env": {
"PORT": "4100", "PORT": "4100",

View File

@ -93,7 +93,7 @@
return `/${url}-${suffix}` return `/${url}-${suffix}`
} else { } else {
const split = url.split("/") const split = url.split("/")
return `/${split[0]}-${suffix}/${split.join("/")}` return `/${split[0]}-${suffix}/${split.slice(1).join("/")}`
} }
} }