def _modTag( urls, attrs, functor ):
  nUrls = urls
  sN = request.environ[ 'SCRIPT_NAME' ]
  if sN:
    if sN[0] == "/":
      sN = sN[1:]
    nUrls = []
    for url in urls:
      if url.find( "http" ) == 0:
        nUrls.append( url )
      else:
        if url[0] == "/":
          url = "/%s%s" % ( sN, url )
        nUrls.append( url )
  return functor( *nUrls, **attrs )