added getUrlFor method to generate absolute URL for specified path