Fixes url with placeholders to avoid ? at the end