Skip to content
Browse files

fixing version switching from /index.html again

  • Loading branch information...
1 parent e93d504 commit 8deccda857ef9325da02ef6de31362d7c7877cf0 @harrah harrah committed Oct 16, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 0.12.1/docs/_static/set-versions.js
  2. +1 −1 0.13.0-SNAPSHOT/docs/_static/set-versions.js
View
2 0.12.1/docs/_static/set-versions.js
@@ -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'; };
View
2 0.13.0-SNAPSHOT/docs/_static/set-versions.js
@@ -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'; };

0 comments on commit 8deccda

Please sign in to comment.
Something went wrong with that request. Please try again.