| Miscellaneous settings: $wgRedirectOnLogin | |
|---|---|
| Redirect users to page on login | 
|
| Introduced in version: | 1.15.0 (r48138) | 
| Removed in version: | still in use | 
| Allowed values: | (string) or null | 
| Default value: | null | 
| Other settings: Alphabetical | By function | |
Details
$wgRedirectOnLogin uses the returnto URL parameter to redirect users to a specific page when they log in.
Specify the name of a page in the wiki where they should be sent automatically when they log in, for example: 'Main Page', or 'Special:MyPage'. Setting this option to null will make the user be redirected back to the page they came from.
Examples
$wgRedirectOnLogin = 'Special:MyPage';
This will redirect users to 'Special:MyPage', i.e. the respective user's user page.
See also
- Manual:Hooks/PostLoginRedirect - allows further interception of the redirect after signup and login.
 
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.