update URL on language match only

The URL will only be updated if the language matches the requirements