Update function getCategory

Because the last version hasn't take into account the different URLs for different languages