Manual:$wgRedirectOnLogin

Details
Redirect users to a specific page when they log in.

To use, 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 via the   URL parameter.