Not sure that there is always a `/` at end.
This code only build the URL to the root.