From 1bbd832e2b4e691622ff7be7b8cf23b66d343d3e Mon Sep 17 00:00:00 2001 From: 4gray Date: Sun, 17 Nov 2024 01:41:35 +0100 Subject: [PATCH] fix(stalker): improve server url handling (/c/) --- .../stalker-portal-import/stalker-portal-import.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/home/stalker-portal-import/stalker-portal-import.component.ts b/src/app/home/stalker-portal-import/stalker-portal-import.component.ts index 4efb94f07..9df5d0464 100644 --- a/src/app/home/stalker-portal-import/stalker-portal-import.component.ts +++ b/src/app/home/stalker-portal-import/stalker-portal-import.component.ts @@ -78,6 +78,10 @@ export class StalkerPortalImportComponent { return url.replace('/c', '/portal.php'); } + if (url.endsWith('/c/')) { + return url.replace('/c/', '/portal.php'); + } + // if the url ends with "/stalker_portal" it should be extended to "/stalker_portal/server/load.php" if (url.endsWith('/stalker_portal')) { return url.replace(