Construct URLs based on header from frontend