Fix screen renaming when same route already exists
This commit is contained in:
parent
fe95844569
commit
2b19986550
|
@ -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",
|
||||||
|
|
|
@ -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("/")}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue