From 21602b5cd6573d0d9e9077df416b0bf42c15694d Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 26 Oct 2011 17:20:53 -0700 Subject: fix(docs): special case url generation for index pages --- docs/src/templates/docs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/src/templates/docs.js') diff --git a/docs/src/templates/docs.js b/docs/src/templates/docs.js index 345bc3d5..c704f22c 100644 --- a/docs/src/templates/docs.js +++ b/docs/src/templates/docs.js @@ -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() { -- cgit v1.2.3