On our site we try to override renderers if possible. However sometimes we need to create new modules and plugins which extend from core modules/plugins because we need to customize something in their libraries.
Because of this, we need to let users access to the custom ones instead of the core ones.
For example, instead of viewing the core forum oursite.com/mod/forum/view.php?id=3, we need to users to view the custom one oursite.com/mod/custom-forum/view.php?id=3.
This is not an easy job because we need to search the change the URL 'mod/forum' in many places in Moodle, which leads to customize other modules and plugins.
We think of redirecting users from the core modules/plugins to the custom ones. So if they access oursite.com/mod/forum/view.php?id=3 they are redirected to oursite.com/mod/custom-forum/view.php?id=3. However, we can't find a plugin event which helps us redirect as soon as the page is initialized.
I appreciate any suggestions to solve this. Thanks!