From 669c46720ea672380cbcf67e5987dc1c8a85009a Mon Sep 17 00:00:00 2001 From: johndmulhausen Date: Thu, 17 Mar 2016 17:53:33 -0700 Subject: [PATCH] Update 404.md --- 404.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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) {