diff --git a/files/assets/js/view_more.js b/files/assets/js/view_more.js index 50178619a..1a13f5483 100644 --- a/files/assets/js/view_more.js +++ b/files/assets/js/view_more.js @@ -4,6 +4,7 @@ function view_more(pid,sort,offset,ids) { btn.innerHTML = "Requesting..."; const form = new FormData(); const xhr = new XMLHttpRequest(); + ids = ids.replace(/[\[\]]/g, '') xhr.open("get", `/view_more/${pid}/${sort}/${offset}?ids=${ids}`); xhr.setRequestHeader('xhr', 'xhr'); xhr.onload=function(){