code: def remap_link_target(path, absolute=False):
      
      if path.startswith('@'):
          # static resource
          return static_url(path[1:], absolute=absolute)
  
      if absolute:
          # absolute-ify whatever the URL is
          return urllib.parse.urljoin(flask.request.url, path)
  
      return path
docs: remap a link target to a static URL if it's prefixed with @