mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-18 23:50:23 +00:00
fix(docs): special case url generation for index pages
This commit is contained in:
parent
4ae671ac88
commit
21602b5cd6
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ function DocsController($location, $window, $cookies) {
|
|||
});
|
||||
|
||||
scope.getUrl = function(page) {
|
||||
return page.section + '/' + page.id;
|
||||
return page.section + (page.id == 'index' ? '' : '/' + page.id);
|
||||
};
|
||||
|
||||
scope.getCurrentPartial = function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue