call the right function to get the url from the plugin