diff options
| author | Igor Minar | 2011-10-26 17:20:53 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-10-30 22:27:25 -0700 | 
| commit | 21602b5cd6573d0d9e9077df416b0bf42c15694d (patch) | |
| tree | 9a511da5d3c189496d401fb800a760f16909f001 /docs/src | |
| parent | 4ae671ac88fc1fd74af988a188525e8eaa1c3a4a (diff) | |
| download | angular.js-21602b5cd6573d0d9e9077df416b0bf42c15694d.tar.bz2 | |
fix(docs): special case url generation for index pages
Diffstat (limited to 'docs/src')
| -rw-r--r-- | docs/src/templates/docs.js | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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() { | 
