diff --git a/NavigationSample/Scripts/navigation.mvc.js b/NavigationSample/Scripts/navigation.mvc.js
index <HASH>..<HASH> 100644
--- a/NavigationSample/Scripts/navigation.mvc.js
+++ b/NavigationSample/Scripts/navigation.mvc.js
@@ -160,9 +160,7 @@
         var newLink = win.location.pathname + win.location.search;

         if (link !== newLink) {

             var path = getShortestPath(link, newLink);

-            if (!path)

-                refreshAjax(newLink, false, null, e.state);

-            else {

+            if (path) {

                 try {

                     for (var i = 0; i < path.length - 1; i++) {

                         var resp = cache[path[i] + '&' + path[i + 1]];

@@ -171,6 +169,8 @@
                 } catch (ex) {

                     refreshAjax(newLink, false, null, e.state);

                 }

+            } else {

+                refreshAjax(newLink, false, null, e.state);

             }

         }

     });
Switched around the if else because finding the path is the normal case