01259: If there is a group named the same as the author, author.php returns invalid AuthorPage

Summary: If there is a group named the same as the author, author.php returns invalid AuthorPage
Created: 2011-07-05 19:09
Status: Closed, mostly fixed for 2.2.51
Category: Bug
From: tamouse
Assigned:
Priority: 2
Version: 2.2.16
OS: CentOS/Apache2.2/5.2

Description: If there is a group with the same name as an author, instead of returning Profiles.$Author as the $AuthorPage, it returns Profiles.HomePage if there is a $Author.HomePage page. From debugging:

 SMS Message: author.php @37 MakePageName(pagename,Author): Tamara.HomePage
 SMS Message: author.php @39 AuthorPage: Profiles/HomePage
 SMS Message: author.php @65 Author: tamara
 SMS Message: author.php @66 AuthId: tamara
 SMS Message: author.php @67 AuthorPage: Profiles/HomePage
 SMS Message: author.php @68 AuthorLink: [[~tamara]]

This variable is not used anymore by the core, as far as I know. In version 2.2.51 the variable will contain the correct page if the page exists, otherwise it will still point to the group; this is considered a feature, see $PagePathFmt and Cookbook:PagePaths. In case you find a better way to define this variable, you can just do it in config.php, this will override the default one. --Petko May 08, 2013, at 06:44 AM