Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing version switching from /index.html again

  • Loading branch information...
commit 8deccda857ef9325da02ef6de31362d7c7877cf0 1 parent e93d504
@harrah harrah authored
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'; };
Please sign in to comment.
Something went wrong with that request. Please try again.