protected function _getRoute(AssetTarget $file, $base)
    {
        $query = [];

        if ($file->isThemed()) {
            $query['theme'] = $this->theme;
        }

        $base = rtrim($base, '/') . '/';
        $query = empty($query) ? '' : '?' . http_build_query($query);

        return $base . $file->name() . $query;
    }