Change the getUrl function.