[TikiWiki-commits] [Git][tikiwiki/tiki][30.x] [FIX] Perspective: Group default homepage overrides active perspective
"Jean-Marc Kadimba \(@jmkadimba\) via TikiWiki-cvs" <[email protected]> Fri, 24 Jul 2026 10:43:59 +0000
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6a6341ef9d5ea_381a6b9861486@gitlab-sidekiq-low-urgency-cpu-bound-v2-7d8cd68bcd-q2gmw.mail> |
Jean-Marc Kadimba pushed to branch 30.x at Tiki Wiki CMS Groupware / Tiki Commits: df62cd3e by Jean-Marc Kadimba at 2026-07-24T12:43:56+02:00 [FIX] Perspective: Group default homepage overrides active perspective --- * [FIX] Perspective: Group default homepage overrides active perspective * [FIX] Perspective: Group default homepage overrides active perspective (Redirect to the perspective homepage when the perspective has just changed) * [FIX] Perspective: Group default homepage overrides active perspective See merge request tikiwiki/tiki!10604 (cherry picked from commit 6677ee5e1901b0e8b6176c3acd6d144a65405972) 8cbfe324 [FIX] Perspective: Group default homepage overrides active perspective 784b307c [FIX] Perspective: Group default homepage overrides active perspective... 9a868b45 [FIX] Perspective: Group default homepage overrides active perspective Co-authored-by: Jean-Marc Kadimba <[email protected]> - - - - - 1 changed file: - lib/userslib.php Changes: ===================================== lib/userslib.php ===================================== @@ -3187,6 +3187,18 @@ class UsersLib extends TikiLib { global $prefs; + $perspectivelib = TikiLib::lib('perspective'); + $perspectiveId = $perspectivelib->get_current_perspective($prefs); + + if ($perspectiveId) { + // Always redirect to the perspective homepage while a perspective with its own homepage is selected, not just the first time it is switched to. + $perspectivePreferences = $perspectivelib->get_preferences($perspectiveId); + if (! empty($perspectivePreferences['wikiHomePage'])) { + return $perspectivePreferences['wikiHomePage']; + } + // Perspective has no homepage of its own — fall through to group home logic below. + } + if ($prefs['useGroupHome'] !== 'y') { return $prefs['wikiHomePage']; } View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/df62cd3e09c703dcca0074701c6e76e0bfbd51d9 -- View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/df62cd3e09c703dcca0074701c6e76e0bfbd51d9 You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help _______________________________________________ TikiWiki-cvs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs