fix(stalker): improve server url handling (/c/)

This commit is contained in:
4gray committed 2024-11-17 01:41:35 +01:00
1 parent 9c8562a842
commit 1bbd832e2b
1 file changed
+4
@@ -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(