How to configure deeplinks in AppModule.forRoot()?

I’ve never used Deeplinks.routeWithNavController. Its not needed. Deeplinks is built into ionic. if you comment that code out and use

ngAfterViewInit() {
this.nav.setRoot(this.nav._linker.segments[0].name).catch(err =>{
this.nav.setRoot(DashboardPage);
});
}

let me know if that works.

Just a note the catch is incase the ionCanViewEnter returns false on the component you want to go to.