get the url reference right