Fixed portal url generation