Fullscreen
Loading...
 
Skip to main content

Logout script with home redirect problem

Status
Closed
Subject
Logout script with home redirect problem
Version
10.x
8.x
Category
  • Error
  • Less than 30-minutes fix
  • Patch
Feature
Administration
Group
Resolution status
New
Submitted by
mealstrom
Lastmod by
mealstrom
Rating
(0)
Description

How to reproduce:
1. Allow Group Homepage
2. Set homepage for anonymous group: agr_home
3. Set homepage for registered group: rgr_home
4. make default page agr_home page
5. login -> you ll be redirected to rgr_gome -> thats ok
6. logout -> you ll be redirected to http://yoursitename.com/agr_homeQuestion (note: not index.php?page=agr_home)

Solution

Fix for this change line 21 at tiki-logout.php:
line 21:
-- $out_page = $userlib->get_group_home('Anonymous');

++ $out_page = "tiki-index.php?page=".$userlib->get_group_home('Anonymous');


I dont know if hardcoding "tiki-index.php?page=" is correct, but this fix that problem.
$userlib->get_group_home('Anonymous') — returns just agr_home.

Importance
6
Easy to solve?
10 easy
Priority
60
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4388
Created
Tuesday 26 February, 2013 12:34:13 UTC
by mealstrom
LastModif
Tuesday 26 February, 2013 12:34:13 UTC


Show PHP error messages