bugfix for auto_locale auto re-routing
Merge pull request #16 from hongliang-goudou/master

fix auto_locale hook