Update 404.md

pull/170/head
johndmulhausen 2016-03-17 17:53:33 -07:00
parent 58015528be
commit 669c46720e
1 changed files with 1 additions and 7 deletions

8
404.md
View File

@ -18,13 +18,7 @@ $( document ).ready(function() {
if (forwardingURL.indexOf("docs/design") > -1)
{
notHere = true;
var urlPieces = forwardingURL.split("docs/design");
if (urlPieces[1].charAt(urlPieces[1].length)=="/") {
urlPieces[1] = urlPieces[1].substring(0, urlPieces[1].length - 1);
urlPieces[1] = urlPieces[1] + ".md";
}
var newURL = "https://github.com/kubernetes/kubernetes/tree/{{page.githubbranch}}/docs/design/" + urlPieces[1]
window.location.replace(newURL);
window.location.replace("https://github.com/kubernetes/kubernetes/tree/{{page.githubbranch}}/docs/design");
}
if (forwardingURL.indexOf("api-ref/") > -1)
{