Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-37983 - my home / navigation: $CFG->forcelogin is no longer affec…

…ting default home page redirects.
  • Loading branch information...
commit 03ee0c39b3c3119c4a2bae08d2d91bff12003ffa 1 parent 1dd6835
@abgreeve abgreeve authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  login/index.php
View
3  login/index.php
@@ -202,7 +202,10 @@
// no wantsurl stored or external - go to homepage
$urltogo = $CFG->wwwroot.'/';
unset($SESSION->wantsurl);
+ }
+ // If the url to go to is the same as the site page, check for default homepage.
+ if ($urltogo == ($CFG->wwwroot . '/')) {
$home_page = get_home_page();
// Go to my-moodle page instead of site homepage if defaulthomepage set to homepage_my
if ($home_page == HOMEPAGE_MY && !is_siteadmin() && !isguestuser()) {
Please sign in to comment.
Something went wrong with that request. Please try again.