Addresses the ability to show 404 Page Not Found pages from events, that wasn't covered in the D462.
Details
Details
Preparations
In IDE:
- open the /core/units/users/users_event_handler.php file for editing
- add protected function OnTestPageNotFound(kEvent $event) { $this->Application->UrlManager->show404(); } code after the \UsersEventHandler::mapPermissions method
- add the 'OnTestPageNotFound' => array('self' => true), element to the $permissions array of the \UsersEventHandler::mapPermissions method
- save changes
Test Plan
- repeat the test plan from the D462
- open the /platform/page-not-found.html?events[u]=OnTestPageNotFound URL on the Front-End
- confirm, that you're stayed on the page URL and seeing Page Not Found page
Diff Detail
Diff Detail
- Repository
- rINP In-Portal
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.