pdfs with ? fail to load

This commit is contained in:
j 2019-02-21 11:10:12 +05:30
parent ca54761f22
commit f1503f129b

View file

@ -66,7 +66,7 @@ pandora.ui.document = function() {
? pandora.user.ui.documents[item.id].position
: 1,
url: '/documents/' + item.id + '/'
+ item.title + '.' + item.extension,
+ item.title.replace('?', '_') + '.' + item.extension,
width: that.width(),
zoom: 'fit'
})