Fix set of base URL when using publicURL