Changeset 6b8afb1 in Klonkt
- Timestamp:
- 06/19/2026 07:23:36 AM (3 months ago)
- Branches:
- main
- Children:
- e9cfa3c
- Parents:
- 0beafed
- File:
-
- 1 edited
-
src/views/shell.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/shell.ejs
r0beafed r6b8afb1 498 498 window.htmx.ajax('GET', here, { target: '#pcms-main', swap: 'innerHTML' }); 499 499 }); 500 501 // Links MÉT eigen hx-get + hx-push-url (post-card/post-tile/topnav/…) lopen NIET 502 // via de boost hierboven, en hx-push-url is een no-op nu htmx-history uitstaat. 503 // Doe daarom de adresbalk-update hier zelf zodra htmx swapt. Programmatische 504 // htmx.ajax-calls (boost/popstate) hebben geen elt met hx-push-url → geen dubbel. 505 document.body.addEventListener('htmx:beforeSwap', function (evt) { 506 try { 507 var elt = evt.detail && evt.detail.elt; 508 if (!elt || !elt.getAttribute) return; 509 var u = elt.getAttribute('hx-push-url'); 510 if (!u || u === 'false') return; 511 if (u !== lastPath) history.pushState({ b: 1 }, '', u); 512 lastPath = u; 513 } catch (_) {} 514 }); 500 515 })(); 501 516 </script>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)