Changeset 3c196f9 in Klonkt
- Timestamp:
- 06/14/2026 05:01:56 PM (3 months ago)
- Branches:
- main
- Children:
- 05a6ca0
- Parents:
- 42081fb
- File:
-
- 1 edited
-
src/views/shell.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/shell.ejs
r42081fb r3c196f9 237 237 </head> 238 238 239 <body class="<%= bodyClass || 'on-home' %> has-bottom-tab" data-feed-view="<%= _e(safeSite.feed_view_default || 'timeline') %>" data-grid-cols="3" >239 <body class="<%= bodyClass || 'on-home' %> has-bottom-tab" data-feed-view="<%= _e(safeSite.feed_view_default || 'timeline') %>" data-grid-cols="3" data-site-base="<%= _e((typeof siteUrlBase !== 'undefined' && siteUrlBase) ? siteUrlBase : '') %>"> 240 240 241 241 <% if (user && user.readonly) { %> … … 384 384 // the page transition matches the rest of the site's nav. 385 385 if (!isFeedPage()) { 386 // Naar de SITE-home in de gekozen view (siteUrlBase), niet de globale '/' 387 // — in hub is '/' de hub-overview, niet de tijdlijn van deze artiest. 388 var base = body.dataset.siteBase || ''; 386 389 if (window.htmx) { 387 window.htmx.ajax('GET', '/?partial=1', { target: '#pcms-main', swap: 'innerHTML' });388 history.pushState({}, '', '/');390 window.htmx.ajax('GET', base + '/?partial=1', { target: '#pcms-main', swap: 'innerHTML' }); 391 history.pushState({}, '', base + '/'); 389 392 } else { 390 location.href = '/';393 location.href = base + '/'; 391 394 } 392 395 }
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)