GRAILS-10364 - fix link generation

When invoking the link or createLink and specifying a url attribute, the value of the url attribute should be used for generating the link