Add support to retain 'locale' URL parameter.