This commit is contained in:
Linus Flood
2024-11-12 08:57:00 +01:00
parent 498f13bc60
commit 495e628d39
7 changed files with 13 additions and 12 deletions

View File

@@ -53,5 +53,6 @@ export function createSDKPageObject(
}
function convertSlashToPipe(url: string) {
return url?.split("/").slice(1).join("|") ?? ""
const formattedUrl = url.startsWith("/") ? url.slice(1) : url
return formattedUrl.replaceAll("/", "|")
}