Skip to content

Commit 21602b5

Browse files
committed
fix(docs): special case url generation for index pages
1 parent 4ae671a commit 21602b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/src/templates/docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function DocsController($location, $window, $cookies) {
4444
});
4545

4646
scope.getUrl = function(page) {
47-
return page.section + '/' + page.id;
47+
return page.section + (page.id == 'index' ? '' : '/' + page.id);
4848
};
4949

5050
scope.getCurrentPartial = function() {

0 commit comments

Comments
 (0)