From dc842ec0457db4f3ec3559c97d501f6095bc4aca Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Thu, 16 Oct 2014 23:23:28 +0300 Subject: [PATCH] Replace search and replace patterns --- js/documents.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/documents.js b/js/documents.js index dc8036a3..377c28ca 100644 --- a/js/documents.js +++ b/js/documents.js @@ -471,7 +471,7 @@ var documentsMain = { var target = OC.Share.showLink; OC.Share.showLink = function() { var r = target.apply( this, arguments ); - $('#linkText').val( $('#linkText').val().replace('service=files', 'service=documents') ); + $('#linkText').val( $('#linkText').val().replace('index.php/s/', 'public.php?service=documents&t=') ); return r; }; })();