From 23a04bf2cb5f00b52873e9530c49f69add6ce5e8 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Wed, 11 Jul 2018 13:26:11 +0800 Subject: [PATCH] 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. --- message/output/popup/mark_notification_read.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/message/output/popup/mark_notification_read.php b/message/output/popup/mark_notification_read.php index a48d9e5d2b2..93fa9b4205a 100644 --- a/message/output/popup/mark_notification_read.php +++ b/message/output/popup/mark_notification_read.php @@ -49,4 +49,4 @@ if ($notification) { } } -redirect($redirecturl); +redirect(new moodle_url($redirecturl));