From 238094310694f0755e6089bf92c36d0ff55fe626 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Thu, 19 May 2011 21:14:41 +0200 Subject: Allow "section/" links pointing to "section/index" --- docs/src/ngdoc.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'docs/src/ngdoc.js') diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index 70e393a8..fa3fbdac 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -72,9 +72,8 @@ Doc.prototype = { * @returns {string} Absolute url */ convertUrlToAbsolute: function(url) { + if (url.substr(-1) == '/') return url + 'index'; if (url.match(/\//)) return url; - - // remove this after return this.section + '/' + url; }, -- cgit v1.2.3