Changeset 85d9fda in Klonkt for src/views/pages/admin-seo.ejs

Timestamp:
06/18/2026 04:37:16 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
255e3d3
Parents:
b08b5bc
Message:

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@…>

(No files)

Note: See TracChangeset for help on using the changeset viewer.