mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #1570 from open-sausages/pulls/4.0/controller-link-standardise
BUG Fix incorrect route registration order
This commit is contained in:
commit
744118a9b6
@ -6,12 +6,9 @@ After: '#rootroutes'
|
||||
Director:
|
||||
rules:
|
||||
'': 'RootURLController'
|
||||
'$URLSegment//$Action/$ID/$OtherID': 'ModelAsController'
|
||||
'StaticExporter//$Action/$ID/$OtherID': 'StaticExporter'
|
||||
'RebuildStaticCacheTask//$Action/$ID/$OtherID': 'RebuildStaticCacheTask'
|
||||
'RemoveOrphanedPagesTask//$Action/$ID/$OtherID': 'RemoveOrphanedPagesTask'
|
||||
'SiteTreeMaintenanceTask//$Action/$ID/$OtherID': 'SiteTreeMaintenanceTask'
|
||||
'SiteTreeMaintenanceTask//$Action/$ID/$OtherID': 'SiteTreeMaintenanceTask'
|
||||
'$URLSegment//$Action/$ID/$OtherID': 'ModelAsController'
|
||||
---
|
||||
Name: legacycmsroutes
|
||||
After: '#adminroutes'
|
||||
|
@ -57,10 +57,6 @@ in the other stage:<br />
|
||||
|
||||
protected $orphanedSearchClass = 'SiteTree';
|
||||
|
||||
public function Link() {
|
||||
return $this->class;
|
||||
}
|
||||
|
||||
public function init() {
|
||||
parent::init();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user