mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-17 19:11:08 +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) {
|
scope.getUrl = function(page) {
|
||||||
return page.section + '/' + page.id;
|
return page.section + (page.id == 'index' ? '' : '/' + page.id);
|
||||||
};
|
};
|
||||||
|
|
||||||
scope.getCurrentPartial = function() {
|
scope.getCurrentPartial = function() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue