Closed paulo2nd closed 9 years ago
The problem is that during startup phase the current controller has not yet been set so this.current()
is null. I think the method can be rewritten to just use current url.
Ok, this patch should solve your problem and improve a bit other edge cases.
By the way my suggestion is to use I18NConf.getLanguage
to get current language, Router.getLangCode
is just a utility method to extract the language code from the url (if any!).
Had change my code yesterday to use I18NConf.getLanguage
. Thx
I am using Router.getLangCode as below: