concat relative url logic