Update 404.md
This commit is contained in:
@@ -18,13 +18,7 @@ $( document ).ready(function() {
|
|||||||
if (forwardingURL.indexOf("docs/design") > -1)
|
if (forwardingURL.indexOf("docs/design") > -1)
|
||||||
{
|
{
|
||||||
notHere = true;
|
notHere = true;
|
||||||
var urlPieces = forwardingURL.split("docs/design");
|
window.location.replace("https://github.com/kubernetes/kubernetes/tree/{{page.githubbranch}}/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);
|
|
||||||
}
|
}
|
||||||
if (forwardingURL.indexOf("api-ref/") > -1)
|
if (forwardingURL.indexOf("api-ref/") > -1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user