There’s `makeUrl` function for that.