User tests: Successful: Unsuccessful:
Pull Request for Issue #42991.
In an ideal world, the site router would only be created when necessary with the previously added onAfterInitialiseRouter event. However if a system plugin requests the site router object before all constructors of system plugins have run, the event would be fired, but no plugin would react to it, since the events haven't been registered yet. Since we can't guarantee that no one requests the router object prematurely, we have to revert the code and load the site router regardless of the application executed.
plugins/system/redirect/services/provider.php
and insert $container->get(\Joomla\CMS\Router\SiteRouter::class);
at line 43 (after '$plugin->setDatabase($container->get(DatabaseInterface::class));')The page throws an error.
The page works fine.
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries Front End Plugins |
I have tested this item ✅ successfully on 479dcac
Works as described. For more info see my test comments in #43015
yes
I have tested this item ✅ successfully on 479dcac
Status | Pending | ⇒ | Ready to Commit |
r2c
Labels |
Added:
RTC
Release Blocker
bug
PR-5.1-dev
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-03-14 17:29:58 |
Closed_By | ⇒ | LadySolveig |
Thank you @Hackwar and for the support and testing @Fedik @SniperSister
Please wait with it, I need time to check different approach.