diff --git a/404.md b/404.md index 774d42cdb7..6090a89a3f 100644 --- a/404.md +++ b/404.md @@ -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) {