Docs: fix version switching from /

This commit is contained in:
Mark Harrah 2012-10-16 16:11:53 -04:00
parent 4f6bab595f
commit 12d549709b
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ $(document).ready(function() {
var changed = oldPathname.replace(selected + '/', newPath).replace(snapshotPath, newPath).replace(releasePath, newPath);
// This occurs for the unversioned /index.html. Redirect to the versioned path in this case.
if (changed == oldPathname)
changed = oldPathname.replace('index.html', newPath + docsPath + 'home.html');
changed = newPath + docsPath + 'home.html';
return changed;
};
var newVersionIndex = function(pathname) { return newPath + docsPath + 'index.html'; };