I have a simple visualforce page that I want to return all account records:
<apex:page standardController="Account" recordSetVar="accounts">
<apex:repeat value="{!accounts}" var="a" >
<li>
<apex:outputLink value="/{! a.id }">LINK</apex:outputLink>
</li>
</apex:repeat>
</apex:page>
This page doesn't return all account records - one thing I've noticed is that in lightning experience the returned accounts seem to be affected by the most recent list view used on the 'Accounts' tab - so if I use the 'Recently Viewed' view, then open this visualforce page then most (but not all) of the recently viewed Accounts appear. If I select 'All Accounts' view on the Account tab, then open the visualforce page, all accounts appear.
How can i set the visualforce page so all accounts appear every time, irrespective of the last view used on the Account tab?