Page MenuHomePhabricator

Redirect users to a specific page when they log in
Closed, ResolvedPublic

Description

redirect on login patch

This patch adds the functionality to redirect a user when they log in to a specified page in the wiki. If the variable $wgEnableRedirectOnLogin is set to true, all user logins will be redirected to the page specified in $wgRedirectOnLoginPage.

I recently needed to add this to a wiki that I'm administering, so I thought that MediaWiki might like to add this as an option for everyone

Apologies if I've made a mistake here - this is the first time I've done something like this :)


Version: unspecified
Severity: enhancement

Attached:

Details

Reference
bz17844

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:30 PM
bzimport set Reference to bz17844.
bzimport added a subscriber: Unknown Object (MLST).

Done in r48138. Rather than adding two variables, I added 1 ($wgRedirectOnLogin, default null). Set to a string to enable redirection and set the target.