How to configure deeplinks in AppModule.forRoot()?

@FdezRomero,

Looks like you’ve made solid headway. I was curious if you’re running into any issues with the url not updating when pushing a page. I’m currently on RC.1.

Below is an outline of the app.module code:

@NgModule({
    declarations: [
        OurApp,
        PAGE_PROVIDERS
    ],
    imports: [
        BrowserModule,
        FormsModule,
        HttpModule,
        IonicModule.forRoot(OurApp, {}, {
            links: [{component: SearchPage, name: 'search', segment: 'search'}]
        })
    ],
    bootstrap: [IonicApp],
    entryComponents: [
        OurApp,
        PAGE_PROVIDERS
    ],
    providers: [
        {provide: APP_BASE_HREF, useValue: "/m"},
        {provide: LocationStrategy, useClass: PathLocationStrategy}
    ]
})

Notice the base href is set to “/m”.
Below is code to push the SearchPage when a button is clicked:

let options = {updateUrl: true, easing: "easeOutQuint", keyboardClose: true};
this.nav.push(SearchPage, routeParams, options);

I’m not sure exactly what’s missing, but I would expect the browser location bar to update with “/m/search”.

Thanks,

Denis