You are here: Foswiki>Tasks Web>Item1940 (15 Mar 2011, GeorgeClark)Edit Attach

Item1940: It is not possible to change the starting page of view script from Main.Webhome to Home.WebHome with WIKIHOMEURL

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: Configure
Branches:
Reported By: PetrMatejka
Waiting For:
Last Change By: GeorgeClark
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 wink

-- 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

ItemTemplate edit

Summary It is not possible to change the starting page of view script from Main.Webhome to Home.WebHome with WIKIHOMEURL
ReportedBy PetrMatejka
Codebase 1.0.6, 1.0.5
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component Configure
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
Topic revision: r7 - 15 Mar 2011, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy