code: def _get_link(self, cobj):
          
  
          fullname = cobj['module_short'] + '.' + cobj['name']
          try:
              value = self._searchindex['objects'][cobj['module_short']]
              match = value[cobj['name']]
          except KeyError:
              link = False
          else:
              fname_idx = match[0]
              objname_idx = str(match[1])
              anchor = match[3]
  
              fname = self._searchindex['filenames'][fname_idx]
              # In 1.5+ Sphinx seems to have changed from .rst.html to only
              # .html extension in converted files. Find this from the options.
              ext = self._docopts.get('FILE_SUFFIX', '.rst.html')
              fname = os.path.splitext(fname)[0] + ext
              if self._is_windows:
                  fname = fname.replace('/', '\\')
                  link = os.path.join(self.doc_url, fname)
              else:
                  link = posixpath.join(self.doc_url, fname)
  
              if anchor == '':
                  anchor = fullname
              elif anchor == '-':
                  anchor = (self._searchindex['objnames'][objname_idx][1] + '-' +
                            fullname)
  
              link = link + '#' + anchor
  
          return link
docs: Get a valid link, False if not found