kopia lustrzana https://github.com/nextcloud/social
rodzic
7c921c40f6
commit
f668e6e818
|
@ -132,6 +132,7 @@ class NavigationController extends Controller {
|
|||
*
|
||||
* @return TemplateResponse
|
||||
* @throws UrlCloudException
|
||||
* @throws SocialAppConfigException
|
||||
*/
|
||||
public function navigate(string $path = ''): TemplateResponse {
|
||||
$data = [
|
||||
|
@ -169,7 +170,7 @@ class NavigationController extends Controller {
|
|||
try {
|
||||
$this->configService->getSocialUrl();
|
||||
} catch (SocialAppConfigException $e) {
|
||||
$this->configService->setSocialUrl('');
|
||||
$this->configService->setSocialUrl();
|
||||
}
|
||||
|
||||
if ($data['serverData']['isAdmin']) {
|
||||
|
|
|
@ -379,7 +379,7 @@ class ConfigService {
|
|||
*/
|
||||
public function setSocialUrl(string $url = '') {
|
||||
if ($url === '') {
|
||||
$url = $this->getCloudUrl() . $this->urlGenerator->linkToRoute(
|
||||
$url = $this->getCloudUrl(true) . $this->urlGenerator->linkToRoute(
|
||||
'social.Navigation.navigate'
|
||||
);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue