[!!!][TASK] Migrate modules to regular backend routing
This patch removes the separate request handler for backend modules, which was accessed via "&M=moduleName" GET parameter. This is now migrated into the RouteDispatcher which can dispatch modules as well. Now, modules are called via the "&route" parameter like all other routes. Additionally, the requested URLs for modules were requested with the additional "moduleToken" which is now called "token". This way, special treatment for modules when dispatching is removed, however the security checks are still in place so this is kept as is. All places where URLs are generated can now still be accessed via `BackendUtility::getModuleUrl()` which can deal with routes, module names and routePaths (from the URL) to keep backwards-compatibility. Next Steps: - Migration wizard for bookmarks + Streamline bookmarks code (see todos) - Check what needs to be added in ExtensionManagementUtility - Introduce slugs in routes for BE, e.g. /file-edit/{fileId}/ and /module/page/view/{id} - Document reserved GET parameters "id", "route" and "token" - Cleanup usage of determineScriptId and getModuleUrl to use new API Resolves: #82406 Releases: master Change-Id: If11c3d5289e14bc9ea766468b8e94cce95c23c71 Reviewed-on: https://review.typo3.org/53881 Reviewed-by:Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Stefan Neufeind <typo3.neufeind@speedpartner.de> Tested-by:
Stefan Neufeind <typo3.neufeind@speedpartner.de> Reviewed-by:
Matthias Vogel <typo3@kanti.de> Tested-by:
Matthias Vogel <typo3@kanti.de> Tested-by:
TYPO3com <no-reply@typo3.com> Reviewed-by:
Benni Mack <benni@typo3.org> Tested-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/backend/Classes/Backend/ToolbarItems/ShortcutToolbarItem.php 9 additions, 4 deletions...kend/Classes/Backend/ToolbarItems/ShortcutToolbarItem.php
- typo3/sysext/backend/Classes/Controller/EditDocumentController.php 2 additions, 2 deletions...ext/backend/Classes/Controller/EditDocumentController.php
- typo3/sysext/backend/Classes/Controller/PageLayoutController.php 1 addition, 1 deletion...ysext/backend/Classes/Controller/PageLayoutController.php
- typo3/sysext/backend/Classes/Http/Application.php 1 addition, 12 deletionstypo3/sysext/backend/Classes/Http/Application.php
- typo3/sysext/backend/Classes/Http/BackendModuleRequestHandler.php 0 additions, 222 deletions...sext/backend/Classes/Http/BackendModuleRequestHandler.php
- typo3/sysext/backend/Classes/Http/RequestHandler.php 9 additions, 1 deletiontypo3/sysext/backend/Classes/Http/RequestHandler.php
- typo3/sysext/backend/Classes/Http/RouteDispatcher.php 87 additions, 0 deletionstypo3/sysext/backend/Classes/Http/RouteDispatcher.php
- typo3/sysext/backend/Classes/RecordList/AbstractRecordList.php 1 addition, 7 deletions.../sysext/backend/Classes/RecordList/AbstractRecordList.php
- typo3/sysext/backend/Classes/Routing/UriBuilder.php 21 additions, 2 deletionstypo3/sysext/backend/Classes/Routing/UriBuilder.php
- typo3/sysext/backend/Classes/Template/Components/Buttons/Action/ShortcutButton.php 1 addition, 1 deletion...ses/Template/Components/Buttons/Action/ShortcutButton.php
- typo3/sysext/backend/Classes/Template/DocumentTemplate.php 1 addition, 1 deletiontypo3/sysext/backend/Classes/Template/DocumentTemplate.php
- typo3/sysext/backend/Classes/Template/ModuleTemplate.php 3 additions, 2 deletionstypo3/sysext/backend/Classes/Template/ModuleTemplate.php
- typo3/sysext/backend/Classes/Tree/View/AbstractTreeView.php 1 addition, 6 deletionstypo3/sysext/backend/Classes/Tree/View/AbstractTreeView.php
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 3 additions, 8 deletionstypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/beuser/Classes/Controller/BackendUserActionController.php 1 addition, 1 deletion...beuser/Classes/Controller/BackendUserActionController.php
- typo3/sysext/beuser/Classes/Controller/PermissionController.php 1 addition, 1 deletion...sysext/beuser/Classes/Controller/PermissionController.php
- typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php 27 additions, 2 deletions...ysext/core/Classes/Utility/ExtensionManagementUtility.php
- typo3/sysext/core/Documentation/Changelog/master/Breaking-82406-RoutingBackendModulesRunThroughRegularDispatcher.rst 49 additions, 0 deletions...2406-RoutingBackendModulesRunThroughRegularDispatcher.rst
- typo3/sysext/cshmanual/Classes/Controller/HelpController.php 1 addition, 1 deletiontypo3/sysext/cshmanual/Classes/Controller/HelpController.php
- typo3/sysext/extbase/Classes/Mvc/Web/Routing/UriBuilder.php 15 additions, 7 deletionstypo3/sysext/extbase/Classes/Mvc/Web/Routing/UriBuilder.php
Please register or sign in to comment