Fixed bug in redirection when locale in path is empty