Author: echatellier Date: 2012-11-07 12:54:54 +0100 (Wed, 07 Nov 2012) New Revision: 103 Url: http://forge.codelutin.com/repositories/revision/isis-fish-docs/103 Log: Fix site deplyed on isis-fish.org. Modified: trunk/src/site/resources/js/maven-isisfish.js Modified: trunk/src/site/resources/js/maven-isisfish.js =================================================================== --- trunk/src/site/resources/js/maven-isisfish.js 2012-11-07 11:42:29 UTC (rev 102) +++ trunk/src/site/resources/js/maven-isisfish.js 2012-11-07 11:54:54 UTC (rev 103) @@ -64,12 +64,16 @@ path = pathname.substr(pathname.indexOf('/site')). replace('/site/', ''); } else { - if (pathname == '/' + projectId + '/') { - // on / page - path = 'index.html'; + if (pathname.lastIndexOf('/' + projectId + '/') === 0) { + if (pathname == '/' + projectId + '/') { + // on / page + path = 'index.html'; + } else { + path = pathname.substr(pathname.indexOf('/' + projectId)). + replace('/' + projectId + '/', ''); + } } else { - path = pathname.substr(pathname.indexOf('/' + projectId)). - replace('/' + projectId + '/', ''); + path = pathname.substr(1); } } path = path.replace('.html', '.' + siteSourcesType);
participants (1)
-
echatellier@users.forge.codelutin.com