Skip to content

Commit dd5215e

Browse files
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 angular#3078
1 parent 497ba08 commit dd5215e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/app/src/search.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ angular.module('search', [])
3535
}
3636
}
3737
if(result) {
38-
$location.path(result.url);
38+
$location.path(result.path);
3939
$scope.hideResults();
4040
}
4141
};

0 commit comments

Comments
 (0)