Skip to content

Commit

Permalink
Docs: fix version switching from /
Browse files Browse the repository at this point in the history
  • Loading branch information
harrah committed Oct 16, 2012
1 parent 30ca2ac commit 5f79296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sphinx/_sphinx/themes/sbt/static/set-versions.js
Expand Up @@ -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'; };
Expand Down

0 comments on commit 5f79296

Please sign in to comment.