Changeset 42e7616 in Klonkt
- Timestamp:
- 07/26/2026 10:00:36 AM (6 weeks ago)
- Branches:
- main
- Children:
- de89079
- Parents:
- ef1853c
- File:
-
- 1 edited
-
src/middleware/render.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/middleware/render.js
ref1853c r42e7616 210 210 211 211 if (isPartial) { 212 // A "Load more" append (hx-swap=beforeend into a sub-list) is NOT a 213 // navigation: it only adds rows to the existing page. It must NOT touch 214 // the site chrome or the body class. Emitting the nav HX-Trigger + OOB 215 // chrome here (below) rebuilds the header for the DEFAULT bodyClass — 216 // which, on a 'on-special' page like Messages, swaps in the full Klonkt 217 // header that the page had hidden. So for an append, send content only. 218 if (req.query.append === '1') { 219 return res.send(injectCspNonce(pageContent, res.locals.cspNonce)); 220 } 212 221 // HTMX: just send the content. Set HX-Trigger for body class swap. 213 222 // HTTP-header values are Latin-1 only — a title with an em-dash, smart
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)