This has been bugging me for the best part of a year now, and I'm beginning to think the use of wildcards in YAML isn't as innocent as it seems.
For my LanguagePrefix module, I'm still trying to overrule/replace the modelascontrollerroutes, without success. If I'm correct, this is how the framework/cms routes are prioritized (and I placed my rule where I think it should be):
rootroutes -> Before * modelascontrollerroutes -> Before: *, After: rootroutes languageprefixroutes -> Before: ???, After: ??? coreroutes -> Before: *, After: rootroutes, modelascontrollerroutes adminroutes -> Before: *, After: rootroutes, coreroutes, modelascontrollerroutes legacycmsroutes -> After: adminroutes
Obviously I want my lanuageprefixroutes after the modelascontrollerroutes, but before the coreroutes. After is easy, but Before always triggers the conflict error, whatever I try. Below one of many tries:
--- Name: 'languageprefixroutes' After: 'cms/routes#modelascontrollerroutes' Before: 'framework/routes#coreroutes' <-- look, no wildcards ---
Has anyone ever succeeded in doing this? Can it actually be done?