fix(docs): special case url generation for index pages

This commit is contained in:
Igor Minar 2011-10-26 17:20:53 -07:00
parent 4ae671ac88
commit 21602b5cd6

View file

@ -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() {