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
This commit is contained in:
Peter Bacon Darwin
2014-05-16 14:33:09 +01:00
parent 6712ca5a6c
commit 52cae5b59b

View File

@@ -35,7 +35,7 @@ angular.module('search', [])
}
}
if(result) {
$location.path(result.url);
$location.path(result.path);
$scope.hideResults();
}
};