diff options
Diffstat (limited to 'apps/files_external/js/google.js')
-rw-r--r-- | apps/files_external/js/google.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/js/google.js b/apps/files_external/js/google.js index 0b3c314eb5d..f9fb8078612 100644 --- a/apps/files_external/js/google.js +++ b/apps/files_external/js/google.js @@ -60,7 +60,7 @@ $(document).ready(function() { var configured = $(this).parent().find('[data-parameter="configured"]'); var token = $(this).parent().find('[data-parameter="token"]'); var token_secret = $(this).parent().find('[data-parameter="token_secret"]'); - $.post(OC.filePath('files_external', 'ajax', 'google.php'), { step: 1, callback: window.location.href }, function(result) { + $.post(OC.filePath('files_external', 'ajax', 'google.php'), { step: 1, callback: location.protocol + '//' + location.host + location.pathname }, function(result) { if (result && result.status == 'success') { $(configured).val('false'); $(token).val(result.data.request_token); |