We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d63f6d8 + 072d4bb commit 7303c09Copy full SHA for 7303c09
lib/private/URLGenerator.php
@@ -271,7 +271,8 @@ public function linkToDocs(string $key): string {
271
* @return string base url of the current request
272
*/
273
public function getBaseUrl(): string {
274
- if ($this->baseUrl === null) {
+ // BaseUrl can be equal to 'http(s)://' during the first steps of the intial setup.
275
+ if ($this->baseUrl === null || $this->baseUrl === "http://" || $this->baseUrl === "https://") {
276
$this->baseUrl = $this->request->getServerProtocol() . '://' . $this->request->getServerHost() . \OC::$WEBROOT;
277
}
278
return $this->baseUrl;
0 commit comments