Add 404 redirects (#4675)
* Add redirect for legacy kubectl links * remove js redirect for kubectl * fix link URLs * add 404 redirects * remove js forwarding rules * clean up _redirects * fix coreos links
This commit is contained in:
+1
-13
@@ -15,19 +15,7 @@ $( document ).ready(function() {
|
||||
* "postfix": "/#<token>" //[optional] append this to base URL w/ <token> found by "pattern"
|
||||
* }
|
||||
*/
|
||||
var forwardingRules = [{
|
||||
"from":"/docs/api-reference/v1/definitions",
|
||||
"pattern":"#_v1_(\\w+)",
|
||||
"to":"/docs/api-reference/v1.7",
|
||||
"postfix":"/#<token>-v1-core"
|
||||
},
|
||||
{
|
||||
"from":"/docs/contribute/",
|
||||
"pattern":"\/contribute\/([0-9a-zA-Z\-\_]+)",
|
||||
"to":"/docs/home/contribute",
|
||||
"postfix":"/<token>"
|
||||
}
|
||||
];
|
||||
var forwardingRules = [];
|
||||
|
||||
forwardingRules.forEach(function(rule) {
|
||||
if (forwardingURL.indexOf(rule.from) > -1) {
|
||||
|
||||
Reference in New Issue
Block a user