Skip to content

Commit

Permalink
fix(*): fix the redirection issue after login user always redirect to…
Browse files Browse the repository at this point in the history
… the home page
  • Loading branch information
Ayush8923 committed Sep 9, 2024
1 parent 5e5d378 commit d30f605
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ function local_moodle_survey_extend_navigation(global_navigation $nav) {
}

function local_moodle_survey_before_http_headers() {
global $CFG;
global $CFG, $SESSION;
$SESSION->wantsurl = $CFG->wwwroot;
$currenturl = $_SERVER['REQUEST_URI'];
if (strpos($currenturl, '/blocks/iomad_company_admin/index.php') !== false) {
redirect($CFG->wwwroot . '/theme/academi/moodle_school/manage_school.php');
Expand Down

0 comments on commit d30f605

Please sign in to comment.