File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -752,7 +752,7 @@ export class NavControllerBase extends Ion implements NavController {
752
752
// it's safe to enable the app again
753
753
this . _app . setEnabled ( true ) ;
754
754
755
- if ( opts . updateUrl !== false ) {
755
+ if ( ! this . hasChildren ( ) && opts . updateUrl !== false ) {
756
756
// notify deep linker of the nav change
757
757
// if a direction was provided and should update url
758
758
this . _linker . navChange ( opts . direction ) ;
@@ -924,6 +924,10 @@ export class NavControllerBase extends Ion implements NavController {
924
924
this . _app . viewWillUnload . emit ( view ) ;
925
925
}
926
926
927
+ hasChildren ( ) : boolean {
928
+ return this . _children . length > 0 ;
929
+ }
930
+
927
931
getActiveChildNav ( ) : any {
928
932
return this . _children [ this . _children . length - 1 ] ;
929
933
}
You can’t perform that action at this time.
0 commit comments