<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _link(self, *args, **kwargs):
 """ Returns a link, potentially pre-redirected """

        if self._record.redirect_url:
            return links.resolve(self._record.redirect_url,
                                 self.search_path, kwargs.get('absolute'))

        return self._permalink(*args, **kwargs)