Votes Navigation remains after voting is disabled

If voting is enabled and then turned off the navigation element for topics sorted by votes remains but appears to be a dead link.

This is on a current discourse hosted instance.

Does it persists after refreshing the page?

Yes. It remains after refresh, login/out, and empty cache hard reload.

Renders as

<li id="ember39" class="extra-nav-item-outlet votes ember-view"><a title="topics with the most votes">Votes</a>
</li>
2 Likes

@vinothkannans can you add to your list to investigate this? We need to ensure that if a site in the multisite has voting disabled nothing is rendered.

3 Likes

It is fixed by the below commit. And the issue is not related to the multisite.

https://github.com/discourse/discourse-voting/commit/2f6d07dbc3537c372767c42cbbfe6c0573e8139f

3 Likes