summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/OC/index.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/core/src/OC/index.js b/core/src/OC/index.js
index c7d2ba2c33d..ebf9171bada 100644
--- a/core/src/OC/index.js
+++ b/core/src/OC/index.js
@@ -286,9 +286,16 @@ export default {
*/
linkTo,
/**
+ * @param {String} service service name
+ * @param {Number} version OCS API version
+ * @returns {String} OCS API base path
* @deprecated 19.0.0 use `generateOcsUrl` from https://www.npmjs.com/package/@nextcloud/router
*/
- linkToOCS: generateOcsUrl,
+ linkToOCS: (service, version) => {
+ return generateOcsUrl(service, {}, {
+ ocsVersion: version || 1,
+ }) + '/'
+ },
/**
* @deprecated 19.0.0 use `generateRemoteUrl` from https://www.npmjs.com/package/@nextcloud/router
*/