mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Url: Add basePath to urlString if url is external or has a username
refs #12133
This commit is contained in:
parent
2fd1a957a8
commit
1ff3149636
@ -609,7 +609,7 @@ class Url
|
|||||||
$urlString .= ':' . $this->getPort();
|
$urlString .= ':' . $this->getPort();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $urlString . '/' . $path;
|
return $urlString . $basePath . ($basePath !== '/' && $path ? '/' : '') . $path;
|
||||||
} else {
|
} else {
|
||||||
return $basePath . ($basePath !== '/' && $path ? '/' : '') . $path;
|
return $basePath . ($basePath !== '/' && $path ? '/' : '') . $path;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user