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