code: def get_active_class_for_request(self, request=None):
          
          parsed_url = urlparse(self.link_url)
          if parsed_url.netloc:
              return ''
          if request.path == parsed_url.path:
              return settings.ACTIVE_CLASS
          if (
              request.path.startswith(parsed_url.path) and
              parsed_url.path != '/'
          ):
              return settings.ACTIVE_ANCESTOR_CLASS
          return ''
docs: Return the most appropriate 'active_class' for this menu item (only
          used when 'link_url' is used instead of 'link_page').