Add this to the file '/core/EE_Module_Request_Router.core.php' around line 74 in the public function get_route($WP) method.