One of the pages on my site contains tabs that are only loaded when clicked:
explore.html
<ion-tabs>
<ion-tab [root]="tab1Root" [tabTitle]="hotTitle" tabIcon="flame"></ion-tab>
<ion-tab [root]="tab2Root" [tabTitle]="searchTitle" tabIcon="search"></ion-tab>
<ion-tab [root]="tab3Root" [tabTitle]="mapTitle" tabIcon="map"></ion-tab>
</ion-tabs>
@IonicPage({
segment: 'explore',
defaultHistory: ['HomePage']
})
The page under tab1Root has an IonicPage decorator as follows:
@IonicPage({
segment: 'hot-channels',
defaultHistory: ['HomePage']
})
However, when navigating to the hot-channels-page, the URL displays: http://localhost:8100/#/explore/tab-0/hot-channels
Where is the "tab-0" coming from? It appears unnecessary, and there is no mention of it in the documentation. Is there a way to remove it and have a cleaner URL like this instead http://localhost:8100/#/explore/hot-channels