---
Name: modelascontrollerroutes
After: '#coreroutes'
---
SilverStripe\Control\Director:
  rules:
    '': 'SilverStripe\CMS\Controllers\RootURLController'
    'RemoveOrphanedPagesTask//$Action/$ID/$OtherID': 'SilverStripe\CMS\Tasks\RemoveOrphanedPagesTask'
    'SiteTreeMaintenanceTask//$Action/$ID/$OtherID': 'SilverStripe\CMS\Tasks\SiteTreeMaintenanceTask'
    '$URLSegment//$Action/$ID/$OtherID': 'SilverStripe\CMS\Controllers\ModelAsController'
---
Name: legacycmsroutes
---
SilverStripe\Control\Director:
  rules:
    'admin/cms': '->admin/pages'

---
Name: modelascontrollerroutes
After: '#coreroutes'
---
SilverStripe\Control\Director:
  rules:
    '': 'SilverStripe\CMS\Controllers\RootURLController'
    'RemoveOrphanedPagesTask//$Action/$ID/$OtherID': 'SilverStripe\CMS\Tasks\RemoveOrphanedPagesTask'
    'SiteTreeMaintenanceTask//$Action/$ID/$OtherID': 'SilverStripe\CMS\Tasks\SiteTreeMaintenanceTask'
---
Name: legacycmsroutes
---
SilverStripe\Control\Director:
  rules:
    'admin/cms': '->admin/pages'
---
Name: modelascontrollercatchallroute
After: '*'
---
SilverStripe\Control\Director:
  rules:
    '$URLSegment//$Action/$ID/$OtherID': 'SilverStripe\CMS\Controllers\ModelAsController'

FIX Separating ModelAsController catch-all route to apply after all other configuration
FIX Separating ModelAsController catch-all route to apply after all other configuration
