Skip to content

Commit

Permalink
fix(angular): fix tabs with useHash (#16392)
Browse files Browse the repository at this point in the history
fixes #16390
  • Loading branch information
manucorporat authored Nov 20, 2018
1 parent adae220 commit f831186
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion angular/src/directives/navigation/ion-router-outlet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export class IonRouterOutlet implements OnDestroy, OnInit {

getLastUrl() {
const active = this.stackCtrl.getActive();
return active ? active.fullpath : undefined;
return active ? active.url : undefined;
}
}

Expand Down
4 changes: 1 addition & 3 deletions angular/src/directives/navigation/stack-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ export class StackController {
return {
ref: enteringRef,
element: (enteringRef && enteringRef.location && enteringRef.location.nativeElement) as HTMLElement,
url: this.getUrl(route),
fullpath: document.location!.pathname,
url: this.getUrl(route)
};
}

Expand Down Expand Up @@ -170,7 +169,6 @@ function destroyView(view: RouteView) {

export interface RouteView {
url: string;
fullpath: string;
element: HTMLElement;
ref: ComponentRef<any>;
savedData?: any;
Expand Down

0 comments on commit f831186

Please sign in to comment.