Update 404.md
parent
58015528be
commit
669c46720e
8
404.md
8
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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue