Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

Commit

Permalink
fix(docs): search form submit load page in both url modes
Browse files Browse the repository at this point in the history
  • Loading branch information
m7r committed Jun 13, 2013
1 parent 5e764f5 commit 183f67c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/templates/js/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,10 @@ docsApp.controller.DocsController = function($scope, $location, $window, section
};

$scope.submitForm = function() {
$scope.bestMatch && $location.path($scope.bestMatch.page.url);
if ($scope.bestMatch) {
var url = $scope.bestMatch.page.url;
$location.path(NG_DOCS.html5Mode ? url : url.substring(1));
}
};

$scope.afterPartialLoaded = function() {
Expand Down

0 comments on commit 183f67c

Please sign in to comment.