Navigation button UX defect

We have Ionic app with following structure:

Home screen -> Side menu, Content with list of users
Detail screen -> Back button, Content with user details + Link to another detail

The problem is that if you enter Detail screen and from that you tap a Link to another random detail, behavior of back button is changing. When you first enter Detail screen, Back button leads to home screen. But if you go from Detail page to another Detail page, Back button leads to the previous detail.

It possible to make Back button always leading to the home?

Another problem is, that the side menu is not being show on the Detail screen.
Solution would also be to have there that menu.

Home template

    <ion-nav-buttons side="left">
        <button menu-toggle="left" class="button button-icon icon ion-navicon"></button>
       <!-- list of users -->

Menu template:

        <ion-nav-bar class="bar-light nav-title-slide-ios7">
            <ion-nav-back-button class="button-clear"><i class="icon ion-chevron-left"></i> Back
        <ion-nav-view name="menuContent" animation="slide-left-right">

    <ion-side-menu side="left">
        <header class="bar bar-header bar-light">
             <!-- logo -->

        <ion-content class="has-header bg-white">
            <!-- menu items -->

Detail template

    <ion-nav-buttons side="right">
        <button class="button">Next random</button>
        <!-- user detils -->

Can you put together a simple codepen of this?

As for the menu not being available on non-menu-root views, please check the docs.

Determines whether the side menu is enabled when the back button is showing. When set to false, any menuToggle will be hidden, and the user cannot swipe to open the menu. When going back to the root page of the side menu (the page without a back button visible), then any menuToggle buttons will show again, and menus will be enabled again.