OCS API should return fancy OC url
* Also use the URLGenerator
This commit is contained in:
parent
e8680e6637
commit
9ce8e1ddc7
|
@ -303,8 +303,7 @@ class Local {
|
|||
break;
|
||||
}
|
||||
}
|
||||
$url = \OCP\Util::linkToPublic('files&t='.$token);
|
||||
$data['url'] = $url; // '&' gets encoded to $amp;
|
||||
$data['url'] = \OC::$server->getURLGenerator()->linkToRouteAbsolute('files_sharing.sharecontroller.showShare', ['token' => $token]);
|
||||
$data['token'] = $token;
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue