if url is relative url, add base_url as prefix to it.