diff --git a/public/s/js/f0ck.js b/public/s/js/f0ck.js index 7bbfdee..e7e7811 100644 --- a/public/s/js/f0ck.js +++ b/public/s/js/f0ck.js @@ -262,6 +262,13 @@ window.requestAnimFrame = (function () { window.initBackground(); const loadPageAjax = async (url) => { + // If we don't have a posts container (e.g. we are coming from an item view), + // we must reload to restore the full list view structure. + if (!document.querySelector('.posts')) { + window.location.href = url; + return; + } + // Show loading indicator const navbar = document.querySelector("nav.navbar"); if (navbar) navbar.classList.add("pbwork");