aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/api/local.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/api/local.php')
-rw-r--r--apps/files_sharing/api/local.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files_sharing/api/local.php b/apps/files_sharing/api/local.php
index 87a8fbbb21f..3cf541b3fab 100644
--- a/apps/files_sharing/api/local.php
+++ b/apps/files_sharing/api/local.php
@@ -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 {