diff --git a/static/js/documentsDialog.js b/static/js/documentsDialog.js index 1bee1484..90ad0d5c 100644 --- a/static/js/documentsDialog.js +++ b/static/js/documentsDialog.js @@ -457,7 +457,7 @@ pandora.ui.documentsDialog = function(options) { click: function() { var info = $list.value(selected), url = '/documents/' + selected + '/' + info.name + '.' + info.extension; - window.open('/url=' + encodeURIComponent(url), '_blank'); + window.open(url, '_blank'); } }); } diff --git a/static/js/documentsView.js b/static/js/documentsView.js index 66118cd5..44d5d0d7 100644 --- a/static/js/documentsView.js +++ b/static/js/documentsView.js @@ -185,7 +185,7 @@ pandora.ui.documentsView = function(options, self) { click: function() { var info = self.$documentsList.value(self.selected), url = '/documents/' + self.selected + '/' + info.name + '.' + info.extension; - window.open('/url=' + encodeURIComponent(url), '_blank'); + window.open(url, '_blank'); } }) )