Global ContentNegotiator

Hi there! I’m was using successfully ContentNegotiator at controller level especially to change application language. Now I would like to setup it at Application level in the config and it’s not working for me when I have prettyUrl = true in urlManager. It’s like it cant identify the value in $_lang default param. I’m using this URL rule ‘<_lang:[\w-]+>’ => ‘some-controller/some-action’