Trending algorithm with subdomain fixes