Hi,
i’m not sure if this behavior (bug?) is introduced with the latest version or if it exists for a longer time.
Steps to reproduce:
Ionic version:
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.9.2
ionic (Ionic CLI) : 3.9.2
local packages:
@ionic/app-scripts : 2.1.3
Ionic Framework : ionic-angular 3.6.0
System:
Node : v8.1.3
npm : 5.3.0
OS : macOS Sierra
- Create a new blank project:
ionic start TestApp blank
- Generate new page:
ionic g page test
- Create a button on the homepage which pushes a new page on the nav stack.
home.ts
push() {
this.navCtrl.push('test');
}
home.html:
<ion-content padding>
<button ion-button (click)="push()">Nav!</button>
</ion-content>
- Start the app in the browser:
ionic serve
- App starts with the following url:
localhost:8100
- Press the “Nav!” - Button and the test page is shown with URL:
localhost:8100/#/test
- Press “Back”-Button (in the app, not browser!), app shows the homepage and the url is:
localhost:8100/#/test
Shouldn’t it be localhost:8100 again? If you have livereload, then the app launches after recompile
the testpage instead of the homepage!
Cheers,
Ronny