diff --git a/core/src/components/nav/view-controller.ts b/core/src/components/nav/view-controller.ts index 958c72c3c2..7cbabea375 100644 --- a/core/src/components/nav/view-controller.ts +++ b/core/src/components/nav/view-controller.ts @@ -60,12 +60,12 @@ export function matches(view: ViewController | undefined, id: string, params: Co return false; } const currentParams = view.params; - if (!currentParams && !params) { - return false; - } if (currentParams === params) { return true; } + if (!currentParams && !params) { + return true; + } if (!currentParams || !params) { return false; }