Angular2 rc1 - browser buttons back / forward

I am using a new RC1 router with a child route. Here is a very simple example of a route configuration.

AppComponent Configuration

@Routes([ {path: '/area1/...', component: Area1Component}, {path: '/page2', component: Page2Component}, {path: '/page3', component: Page3Component} ]) 

Area1Component Configuration

 @Routes([ {path: '/page11', component: Page11Component}, {path: '/page12', component: Page12Component}, {path: '/page13', component: Page13Component} ]) 

I can navigate different pages with commands like

 this.router.navigate(['page2']) // from AppComponent 

or

 this.router.navigate(['../page12'], this.segment) // from pages of Area1 - this.segment is the current segment 

I found that if I click the back button of the browser, it will return me to the "one page", but after that it will remain there (that is, I will not go back the whole history of my navigation). Moreover, the forward button is never activated. With the old router, I could go back and forth without visible problems. This happens with Chrome, FF and Safari.

Did I miss something?

Thanks in advance

+6
source share

All Articles