I have just upgraded my project to 3.0.2-rc2 and i am running into problems with the definition of a custom route.
I would like to insert a route before the modelascontrollerroutes but it always gives me either a 404 or the following error, whatever I try:
Fatal error: Based on their before & after rules two fragments both need to be before/after each other in {path}\framework\core\manifest\ConfigManifest.php on line 293
I followed the description on http://doc.silverstripe.org/framework/en/3.0/reference/director (with modifications for the changes in 3.0.2-rc2), but that doesn't work. here my code of the routes.yml file:
---
Name: shareroutes
After: '#coreroutes'
---
Director:
rules:
'': 'RootURLController'
'$URLSegment//$Action/$ID/$OtherID': 'ShortlinkController'
How do I insert a custom route that should be triggered after #coreroutes and before #modelascontrollerroutes?
Thanks.