From d23cc055ab8b26e85cdb10811a6ff69e88a27253 Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Tue, 27 Jan 2026 11:21:58 +0100 Subject: [PATCH] fixing back button (hopefully :p) --- public/s/js/f0ck.js | 7 +++++++ 1 file changed, 7 insertions(+) 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");