import { LightningElement } from 'lwc'; import { NavigationMixin } from 'lightning/navigation'; export default class TestLwc extends NavigationMixin(LightningElement) { navigateToAccountsList() { this[NavigationMixin.Navigate]({ type: 'standard__objectPage', attributes: { objectApiName: 'Account', actionName: 'list' }, state: { filterName: 'Recent' // Optional filter name } }); } }