[pmwiki-users] default page after login

Petko Yotov 5ko at 5ko.fr
Tue Oct 19 15:32:38 CDT 2010


On Tuesday 19 October 2010 12:26:29 Carlos Franke wrote:
> Is it possible to specify a default page to which a user is directed after
> login (i.e. authuser login)? And how do I do that?

Hi. There are two ways to log in. 

One is to try some action that requires authentication -- like editing a page 
-- then PmWiki presents the login form automatically and if successful, it 
redirects directly to the requested action, eg. the edit form. 

The other way is to go to [[SomePage?action=login]] and to enter your 
username/password, then you are logged in, but just looking at SomePage.


> At the moment, users of my wiki seem to be directed to the page they last
> visited when they log in,

This is probably the first case above.

> except sometimes they are directed to
> Site/PageActions, which doesn't really make any sense.

This looks like the second case with something broken after an upgrade. 

If you have added a special link in [[Site.PageActions]] leading to 
?action=login, it should probably look like this:
  * [[ {*$FullName}?action=login | login ]]

Note the "*" in "{*$FullName}", similar to the other links to ?action=edit 
etc. In recent versions, "{*$FullName}" is related to the currently browsed 
page like Main.HomePage, while "{$FullName}" is the physical page 
Site.PageActions.

Now, using "{*$FullName}?action=login" will lead you to the same page -- to 
direct users to a dedicated fixed page, use in Site.PageActions :
   * [[ Main.EditorsHome?action=login | login ]]

Thanks,
Petko



More information about the pmwiki-users mailing list