Changeset 72ec6a4 in Klonkt for src/views/partials/bottom-tab.ejs
- Timestamp:
- 07/31/2026 06:55:59 PM (6 weeks ago)
- Branches:
- main
- Children:
- 17546af
- Parents:
- bfa6fa1
- File:
-
- 1 edited
-
src/views/partials/bottom-tab.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/partials/bottom-tab.ejs
rbfa6fa1 r72ec6a4 13 13 && permissions && permissions.canCreatePost && permissions.canCreatePost(user, site)); 14 14 const _ownProfile = user ? ('/users/' + user.username) : null; 15 const _isHub = (typeof tenancy !== 'undefined' && tenancy === 'hub'); 16 // Home in hub mode ALWAYS goes to the hub root (/), not to an artist's sub-home. 17 // In solo/circle _siteUrlBase is empty, so it stays '/'. 18 const _homeHref = (_isHub ? '' : _siteUrlBase) + '/'; 15 const _homeHref = _siteUrlBase + '/'; 19 16 20 17 // Strip site prefix for cleaner matching … … 26 23 27 24 let _active = null; 28 // In hub, Home is only active on the real hub root, not on an artist sub-home. 29 if (_isHub ? (_path === '/') : (_p === '/' || _p === '')) _active = 'home'; 25 if (_p === '/' || _p === '') _active = 'home'; 30 26 else if (_p.indexOf('/search') === 0 || _p.indexOf('/tag/') === 0 || _p.indexOf('/type/') === 0) _active = 'search'; 31 27 else if (_p === '/posts/new' || /^\/posts\/[^/]+\/edit$/.test(_p)) _active = 'create';
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)