mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
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:
parent
c5fcbd1081
commit
b77e5841f8
1 changed files with 1 additions and 1 deletions
|
@ -45,4 +45,4 @@ if ($USER->id != $notification->useridto) {
|
|||
}
|
||||
|
||||
\core_message\api::mark_notification_as_read($notification);
|
||||
redirect($redirecturl);
|
||||
redirect(new moodle_url($redirecturl));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue