getRelativeURL function

Compute name of URL relative to a base URL