Item1940: It is not possible to change the starting page of view script from Main.Webhome to Home.WebHome with WIKIHOMEURL
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: Configure
Branches:
It is not possible to change the default starting web and topic. What I mean is that when I type http://myfoswiki.org/cgi-bin/foswiki/view I always end up in Main.WebHome but I would like to go somewhere else like on foswiki.org it goes to Home.WebHome.
I looked at the code in Foswiki.pm in sub new() changing
$this->{webName} = $this->{requestedWebName}
|| $Foswiki::cfg{UsersWebName};
to
$this->{webName} = $this->{requestedWebName}
|| "Home";
Does the trick, but I do not know what would be the side effects.
Variable WIKIHOMEURL should probably do the trick, but it does not.
Check
IRC log 2009-08-18 for details.
Workaround: In my case I use
RedirectPlugin and redirect from Main.WebHome to Home.WebHome
You can use
DirectoryIndex /Home/WebHome
or
RedirectMatch ^/+$ /Home/WebHome
(or
RedirectMatch ^/+bin/+view/*$ /Home/WebHome
, if you don't use short URLs). I mean, you can solve this issue using web server rules. Please open the task again if it's not enough and please elaborate more on the problem
--
GilmarSantosJr - 18 Aug 2009
I have changed the state to "confirmed", because the is a problem here: WIKIHOMEURL does not work. So either WIKIHOMEURL should be removed from the documentation, or else it should be made to work.
--
MichaelTempest - 18 Aug 2009
must admit, I thought this was a feature that had not yet been implemented. and as I needed something more, I worte
HomePagePlugin.
--
SvenDowideit - 27 Aug 2009
WIKIHOMEURL is used to display the link back to the wiki homepage. (Doesn't work with short URL's enabled). It is not a setting used to alter the default homepage. However this request is implemented by the
HomePagePlugin, so setting task to No Action.
--
GeorgeClark - 15 Mar 2011