Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #27 from Tomy2e/fix-webdav-urls
Browse files Browse the repository at this point in the history
Fix WebDAV links
  • Loading branch information
NastuzziSamy authored Oct 1, 2018
2 parents c933d8b + fc6f6c8 commit a7b4667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ var RightClick = RightClick || {};
}

if (text !== '') {
addNewOpenSubOption('WebDAV', 'public', t(appName, 'Get WebDAV link'), window.location.origin + OC.generateUrl('/remote.php/webdav') + currentFile.attr('data-path') + (currentFile.attr('data-path') === '/' ? '' : '/') + currentFile.attr('data-file'), false);
addNewOpenSubOption('WebDAV', 'public', t(appName, 'Get WebDAV link'), OC.linkToRemote('webdav' + currentFile.attr('data-path') + (currentFile.attr('data-path') === '/' ? '' : '/') + currentFile.attr('data-file')), false);

addNewOption('Open', icon, text, onClick, true, openSubOptions);
}
Expand Down

0 comments on commit a7b4667

Please sign in to comment.