'Returns themed url for the given asset.'

def url(self, name, force=False):

    theme = get_current_theme()
    if (theme and (theme.theme_dir_name not in name)):
        name = os.path.join(theme.theme_dir_name, name)
    parsed_name = urlsplit(unquote(name))
    clean_name = parsed_name.path.strip()
    asset_name = name
    if (not self.exists(clean_name)):
        theme = name.split('/', 1)[0]
        if (theme in [theme.theme_dir_name for theme in get_themes()]):
            asset_name = '/'.join(name.split('/')[1:])
    return super(ThemeCachedFilesMixin, self).url(asset_name, force)
