Ion-navbar now changed to ion-toolbar

Ionic 4 has replaced ion-navbar with ion-toolbar, but it seems that transparent is not working on ion-toolbar, and I have lost my back arrow. So are there any suggestions about how I can solve this?

The back arrow should come using

<ion-toolbar>
<ion-buttons slot=“start”>
<ion-back-button></ion-back-button>
</ion-buttons>
<ion-title>Back Button</ion-title>
</ion-toolbar>

But I only get this:

image

back button will show in second page when second page will detect nav stack history from browser. if u want button in first page then use

<ion-toolbar>
    <ion-title>
      first page
    </ion-title>
    <ion-buttons slot="start">
      <ion-button>
        <ion-icon name="arrow-back"></ion-icon>
      </ion-button>
    </ion-buttons>
  </ion-toolbar>

Yes, then I will get the arrow, but as I am on the second page I would expect the stack history to be ok, and back is in fact working in the browser. And getting the arrow will then still need functionality to navigate in the code.

I am using

this.navCtrl.goForward(‘page2’)

to navigate and that should add the page to the stack

<ion-toolbar>
<ion-buttons slot=“start”>
<ion-back-button defaultHref="firstpage"></ion-back-button>
</ion-buttons>
<ion-title>Back Button</ion-title>
</ion-toolbar>