Jank way of inferring base url