Use a method to get resource url so it can be customized