diff --git a/core/js/public/publicpage.js b/core/js/public/publicpage.js index adb1c4dd2fcdc..36f16244d5d85 100644 --- a/core/js/public/publicpage.js +++ b/core/js/public/publicpage.js @@ -31,6 +31,10 @@ window.addEventListener('DOMContentLoaded', function () { $('#remote_address').focus(); }); + if (new URLSearchParams(window.location.search).get('view') == 'grid') { + $('#view-toggle').removeClass('icon-toggle-pictures').addClass('icon-toggle-filelist'); + $('#filestable').addClass('view-grid'); + } $(document).mouseup(function(e) { var toggle = $('#body-public').find('.header-right .menutoggle');