MDL-62889 message_popup: redirect using moodle_url

Without this relative URLs passed (like /message/index.php)
were being redirected to HOST/message/index.php rather than
$CFG->wwwroot/message/index.php.
This commit is contained in:
Mark Nelson 2018-07-11 13:26:11 +08:00
parent c5fcbd1081
commit b77e5841f8

View file

@ -45,4 +45,4 @@ if ($USER->id != $notification->useridto) {
} }
\core_message\api::mark_notification_as_read($notification); \core_message\api::mark_notification_as_read($notification);
redirect($redirecturl); redirect(new moodle_url($redirecturl));