Fix double page on back/forward (htmx history conflict)
On back/forward two history mechanisms were running: htmx's built-in
history restore (hx-history-elt on #pcms-main) AND our own popstate
listener. htmx restored #pcms-main by dumping the partial — including
the <div id=pcms-chrome hx-swap-oob> — UNFILTERED into #pcms-main
(history restore does not process OOB), while our listener was also
correctly replacing the header → a second, nested header = the entire
page doubled.
Fix: htmx history off (config.historyEnabled=false) + hx-history-elt
removed. Back/forward now runs exclusively through our popstate listener,
which re-fetches the partial via htmx.ajax — that correctly processes
the OOB chrome and the pcmsNav trigger (accent/palette/bodyClass). The
now-dead htmx:historyRestore handler has been removed.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>