'This is an override of url_converter from CachedFilesMixin.
It just comments out two lines at the end of the method.
The purpose of this override is to make converter method return absolute urls instead of relative urls.
This behavior is necessary for theme overrides, as we get 404 on assets with relative urls on a themed site.'

def url_converter(self, name, template=None):

    if (template is None):
        template = self.default_template
    def converter(matchobj):
        '\n                                                Converts    the    matched    URL    depending    on    the    parent    level    (`..`)\n                                                and    returns    the    normalized    and    hashed    URL    using    the    url    method\n                                                of    the    storage.\n                                                '
        (matched, url) = matchobj.groups()
        if url.startswith(('#', 'http:', 'https:', 'data:', '//')):
            return matched
        name_parts = name.split(os.sep)
        url = posixpath.normpath(url)
        url_parts = url.split('/')
        (parent_level, sub_level) = (url.count('..'), url.count('/'))
        if url.startswith('/'):
            sub_level -= 1
            url_parts = url_parts[1:]
        if (parent_level or (not url.startswith('/'))):
            (start, end) = ((parent_level + 1), parent_level)
        elif sub_level:
            if (sub_level == 1):
                parent_level -= 1
            (start, end) = (parent_level, 1)
        else:
            (start, end) = (1, (sub_level - 1))
        joined_result = '/'.join((name_parts[:(- start)] + url_parts[end:]))
        hashed_url = self.url(unquote(joined_result), force=True)
        return (template % unquote(hashed_url))
    return converter
