code: def get_icon_url(self, icon):
          
          if not icon.startswith('/') \
                  and not icon.startswith('http://') \
                  and not icon.startswith('https://'):
              if '/' in icon:
                  return self.icon_static_root + icon
              else:
                  return self.icon_theme_root + icon
          else:
              return icon
docs: Replaces the "icon name" with a full usable URL.
  
          * When the icon is an absolute URL, it is used as-is.
          * When the icon contains a slash, it is relative from the ``STATIC_URL``.
          * Otherwise, it's relative to the theme url folder.