replace placeholders in url