mirror of https://github.com/sbt/sbt.git
Docs: fix version switching from /
This commit is contained in:
parent
4f6bab595f
commit
12d549709b
|
|
@ -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'; };
|
||||
|
|
|
|||
Loading…
Reference in New Issue