mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
};
|
||||
}
|
||||
|
||||
@@ -170,7 +169,6 @@ function destroyView(view: RouteView) {
|
||||
|
||||
export interface RouteView {
|
||||
url: string;
|
||||
fullpath: string;
|
||||
element: HTMLElement;
|
||||
ref: ComponentRef<any>;
|
||||
savedData?: any;
|
||||
|
||||
Reference in New Issue
Block a user