Merge pull request #2226 from creative-commoners/pulls/4.2/uncatch-all

FIX Separating ModelAsController catch-all route
This commit is contained in:
Robbie Averill 2018-08-17 21:35:27 +12:00 committed by GitHub
commit 4c8a76f21e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,10 +7,16 @@ SilverStripe\Control\Director:
'': 'SilverStripe\CMS\Controllers\RootURLController' '': 'SilverStripe\CMS\Controllers\RootURLController'
'RemoveOrphanedPagesTask//$Action/$ID/$OtherID': 'SilverStripe\CMS\Tasks\RemoveOrphanedPagesTask' 'RemoveOrphanedPagesTask//$Action/$ID/$OtherID': 'SilverStripe\CMS\Tasks\RemoveOrphanedPagesTask'
'SiteTreeMaintenanceTask//$Action/$ID/$OtherID': 'SilverStripe\CMS\Tasks\SiteTreeMaintenanceTask' 'SiteTreeMaintenanceTask//$Action/$ID/$OtherID': 'SilverStripe\CMS\Tasks\SiteTreeMaintenanceTask'
'$URLSegment//$Action/$ID/$OtherID': 'SilverStripe\CMS\Controllers\ModelAsController'
--- ---
Name: legacycmsroutes Name: legacycmsroutes
--- ---
SilverStripe\Control\Director: SilverStripe\Control\Director:
rules: rules:
'admin/cms': '->admin/pages' 'admin/cms': '->admin/pages'
---
Name: modelascontrollercatchallroute
After: '*'
---
SilverStripe\Control\Director:
rules:
'$URLSegment//$Action/$ID/$OtherID': 'SilverStripe\CMS\Controllers\ModelAsController'