When using Settings -> Routes in the CMS with wildcard, routes.php does not work Not sure of this is intentional or a bug but, when we add a route using Settings -> Routes in the CMS, routes.php does not work. I guess maybe its due to us using a wildcard and this takes presedence over routes.php

The route we needed to add in the CMS was:

*/&lt;teamid&gt;


The reason we need a wildcard is because I don't want to hard code the page slug as this could be changed by a website administrator which would break functionality. 

I added it in the CMS Routes because I can't find out how to add a wildcard in routes.php (perhaps worthy of another question as I would like that answer too!). 

in the meantime I have to use routes.php and hard code the slug URLs as follows for each locale:

'contact-us/&lt;teamid&gt;'         =&gt; ['template' =&gt; 'pages/index'],
'cysylltu-â-ni/&lt;teamid&gt;'         =&gt; ['template' =&gt; 'pages/index'],


It would be great if I could either:
1) Use the CMS routes with this wildcard AND routes.php still works for all my others, or 
2) Add a wildcard in routes.php (my preference)

Thanks
I don't know if it's great practice to do this but if you want a "wildcard", especially as your first segment, you should a) put it in your routes.php manually b) make it the last route (always) otherwise it will take precedence just as you said and the other routes won't work. Also, using regex in your named parameters is good practice, if you are sure that teamid&gt; is always and only a number, you could do this &lt;teamid:\d+&gt; so that someone visiting contact-us/peanuts would get a 404.

As far as setting this catch all route you want, just use a named parameter again:

'&lt;anything&gt;/&lt;teamid:\d+&gt;'         =&gt; ['template' =&gt; 'pages/index'],


This would have your catch all effect and will allow you to fetch the first segment if you need to. 

If you expect a certain format for this first segment, in your template by calling {{ anything }} you could do some sort of validation. Also you could use regular expression to narrow the possibilities down a bit... With this as is, 500shoes/54896 would return your index page...

Hope that helps :)