Avoid function nesting error with link url.