[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Perspective: Group default homepage overrides active perspective
"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]> Wed, 22 Jul 2026 15:29:21 +0000
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6a60e1d11e8ac_3819d2c8431e6@gitlab-sidekiq-low-urgency-cpu-bound-v2-7d8cd68bcd-mbjjz.mail> |
Victor Emanouilov pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
6677ee5e by Jean-Marc Kadimba at 2026-07-22T15:07:45+00: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
- - - - -
1 changed file:
- lib/userslib.php
Changes:
=====================================
lib/userslib.php
=====================================
@@ -3185,6 +3185,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/6677ee5e1901b0e8b6176c3acd6d144a65405972
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/6677ee5e1901b0e8b6176c3acd6d144a65405972
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