Use getUrl instead of creating the url every time