-
Bug
-
Resolution: Fixed
-
Critical
-
3.4.3, 3.5
-
MOODLE_34_STABLE, MOODLE_35_STABLE
-
MOODLE_34_STABLE, MOODLE_35_STABLE
-
MDL-62658_master -
MDL-56498 message: Ensure clicked notifications are marked read
I get the error 'A required parameter (notification id) was missing' when I click in the link inside popup notifications. This behavior, I believe, is because the below code has an issue.
See:
// Link to mark read page before loading the actual link.
{{ notification.contexturl = URL.relativeUrl('message/output/popup/mark_notification_read.php', {}}
{{ redirecturl: notification.contexturl,}}
notificationid: notification.id,
{{ });}}
This will build an incorrect url path, like this:
http://<wwwroot>moodle/message/output/popup/mark_notification_read.php?redirecturl=http://<wwwroot>/moodle/mod/forum/discuss.php?d=684#p2916¬ificationid=56608
A solution is change parameters order:
notificationid: notification.id, redirecturl: notification.contexturl,