diff --git a/mod/forum/classes/event/post_created.php b/mod/forum/classes/event/post_created.php index 16cbe9ca86f..7ea2c199eb7 100644 --- a/mod/forum/classes/event/post_created.php +++ b/mod/forum/classes/event/post_created.php @@ -79,7 +79,7 @@ class post_created extends \core\event\base { // Single discussion forums are an exception. We show // the forum itself since it only has one discussion // thread. - $url = new \moodle_url('/mod/forum/view.php', array('id' => $this->other['forumid'])); + $url = new \moodle_url('/mod/forum/view.php', array('f' => $this->other['forumid'])); } else { $url = new \moodle_url('/mod/forum/discuss.php', array('d' => $this->other['discussionid'])); } diff --git a/mod/forum/classes/event/post_deleted.php b/mod/forum/classes/event/post_deleted.php index 1ce2572ea5f..6cfdd7799c8 100644 --- a/mod/forum/classes/event/post_deleted.php +++ b/mod/forum/classes/event/post_deleted.php @@ -80,7 +80,7 @@ class post_deleted extends \core\event\base { // Single discussion forums are an exception. We show // the forum itself since it only has one discussion // thread. - $url = new \moodle_url('/mod/forum/view.php', array('id' => $this->other['forumid'])); + $url = new \moodle_url('/mod/forum/view.php', array('f' => $this->other['forumid'])); } else { $url = new \moodle_url('/mod/forum/discuss.php', array('d' => $this->other['discussionid'])); } diff --git a/mod/forum/classes/event/post_updated.php b/mod/forum/classes/event/post_updated.php index e15fe593d95..2fc3716a772 100644 --- a/mod/forum/classes/event/post_updated.php +++ b/mod/forum/classes/event/post_updated.php @@ -80,7 +80,7 @@ class post_updated extends \core\event\base { // Single discussion forums are an exception. We show // the forum itself since it only has one discussion // thread. - $url = new \moodle_url('/mod/forum/view.php', array('id' => $this->other['forumid'])); + $url = new \moodle_url('/mod/forum/view.php', array('f' => $this->other['forumid'])); } else { $url = new \moodle_url('/mod/forum/discuss.php', array('d' => $this->other['discussionid'])); } diff --git a/mod/forum/classes/event/readtracking_disabled.php b/mod/forum/classes/event/readtracking_disabled.php index 0e568486d20..86900bef6bc 100644 --- a/mod/forum/classes/event/readtracking_disabled.php +++ b/mod/forum/classes/event/readtracking_disabled.php @@ -72,7 +72,7 @@ class readtracking_disabled extends \core\event\base { * @return \moodle_url */ public function get_url() { - return new \moodle_url('/mod/forum/view.php', array('id' => $this->other['forumid'])); + return new \moodle_url('/mod/forum/view.php', array('f' => $this->other['forumid'])); } /** diff --git a/mod/forum/classes/event/readtracking_enabled.php b/mod/forum/classes/event/readtracking_enabled.php index ad8aa28ee2c..657002b2fd8 100644 --- a/mod/forum/classes/event/readtracking_enabled.php +++ b/mod/forum/classes/event/readtracking_enabled.php @@ -72,7 +72,7 @@ class readtracking_enabled extends \core\event\base { * @return \moodle_url */ public function get_url() { - return new \moodle_url('/mod/forum/view.php', array('id' => $this->other['forumid'])); + return new \moodle_url('/mod/forum/view.php', array('f' => $this->other['forumid'])); } /** diff --git a/mod/forum/classes/event/subscription_created.php b/mod/forum/classes/event/subscription_created.php index 678cdccd7ed..b549a94dde2 100644 --- a/mod/forum/classes/event/subscription_created.php +++ b/mod/forum/classes/event/subscription_created.php @@ -72,7 +72,7 @@ class subscription_created extends \core\event\base { * @return \moodle_url */ public function get_url() { - return new \moodle_url('/mod/forum/view.php', array('id' => $this->other['forumid'])); + return new \moodle_url('/mod/forum/view.php', array('f' => $this->other['forumid'])); } /** diff --git a/mod/forum/classes/event/subscription_deleted.php b/mod/forum/classes/event/subscription_deleted.php index c89b517a9ba..46baa687f7b 100644 --- a/mod/forum/classes/event/subscription_deleted.php +++ b/mod/forum/classes/event/subscription_deleted.php @@ -72,7 +72,7 @@ class subscription_deleted extends \core\event\base { * @return \moodle_url */ public function get_url() { - return new \moodle_url('/mod/forum/view.php', array('id' => $this->other['forumid'])); + return new \moodle_url('/mod/forum/view.php', array('f' => $this->other['forumid'])); } /**