From 52cae5b59b7106f3d111f7405f8d657cd94c4c2a Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Fri, 16 May 2014 14:33:09 +0100 Subject: [PATCH] docs(search): fix search submit functionality When the search input box was submitted (i.e. by pressing enter) the app was supposed to take you to the first item but this was not happening. It turns out the app was just reading the wrong property for the path to the item. Closes #3078 --- docs/app/src/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/app/src/search.js b/docs/app/src/search.js index b0b2fc40..0cee4b84 100644 --- a/docs/app/src/search.js +++ b/docs/app/src/search.js @@ -35,7 +35,7 @@ angular.module('search', []) } } if(result) { - $location.path(result.url); + $location.path(result.path); $scope.hideResults(); } };