Skip to content

Commit

Permalink
Update ERL redirects to go to mintlify and ESD redirect to go to it's…
Browse files Browse the repository at this point in the history
… readme for now
  • Loading branch information
nfriedly authored Oct 27, 2023
2 parents ac4539c + 5cef3ac commit 2f8a498
Show file tree
Hide file tree
Showing 14 changed files with 44 additions and 44 deletions.
8 changes: 4 additions & 4 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
<noscript>
<meta
http-equiv="refresh"
content="0; url=https://github.com/express-rate-limit/express-rate-limit"
content="0; url=https://express-rate-limit.mintlify.app/"
/>
</noscript>
<script type="text/javascript">
// default redirection target
let target = 'https://github.com/express-rate-limit/express-rate-limit'
let target = 'https://express-rate-limit.mintlify.app/'
// strip the leading and trailing slashes and lowercase
let path = location.pathname.substr(1).toLowerCase();
if (path.endsWith('/')) {
path = path.substring(0, path.length-1)
}
if (path.startsWith('err_erl_') || path.startsWith('wrn_erl_')) {
target += '/wiki/Error-Codes#' + path;
target += 'reference/error-codes#' + path.repaceAll('_', '-');
}
document.addEventListener("DOMContentLoaded", (event) => {
const link = document.getElementById('link');
Expand All @@ -31,7 +31,7 @@
If you are not redirected automatically, follow
<a
id="link"
href="https://github.com/express-rate-limit/express-rate-limit"
href="https://express-rate-limit.mintlify.app/"
>
this link
</a>
Expand Down
6 changes: 3 additions & 3 deletions ERR_ERL_DOUBLE_COUNT/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
<meta charset="UTF-8" />
<meta
http-equiv="refresh"
content="0; url=https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_double_count"
content="0; url=https://express-rate-limit.mintlify.app/reference/error-codes#err_erl_double_count"
/>
<script type="text/javascript">
window.location.href =
"https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_double_count";
"https://express-rate-limit.mintlify.app/reference/error-codes#err_erl_double_count";
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow
<a
href="https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_double_count"
href="https://express-rate-limit.mintlify.app/reference/error-codes#err_erl_double_count"
>
this link
</a>
Expand Down
6 changes: 3 additions & 3 deletions ERR_ERL_HEADERS_NO_RESET/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
<meta charset="UTF-8" />
<meta
http-equiv="refresh"
content="0; url=https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_headers_no_reset"
content="0; url=https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-headers-no-reset"
/>
<script type="text/javascript">
window.location.href =
"https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_headers_no_reset";
"https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-headers-no-reset";
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow
<a
href="https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_headers_no_reset"
href="https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-headers-no-reset"
>
this link
</a>
Expand Down
6 changes: 3 additions & 3 deletions ERR_ERL_INVALID_HITS/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
<meta charset="UTF-8" />
<meta
http-equiv="refresh"
content="0; url=https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_iinvalid_hits"
content="0; url=https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-iinvalid-hits"
/>
<script type="text/javascript">
window.location.href =
"https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_invalid_hits";
"https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-invalid-hits";
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow
<a
href="https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_invalid_hits"
href="https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-invalid-hits"
>
this link
</a>
Expand Down
6 changes: 3 additions & 3 deletions ERR_ERL_INVALID_IP_ADDRESS/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
<meta charset="UTF-8" />
<meta
http-equiv="refresh"
content="0; url=https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_invalid_ip_address"
content="0; url=https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-invalid-ip-address"
/>
<script type="text/javascript">
window.location.href =
"https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_invalid_ip_address";
"https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-invalid-ip-address";
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow
<a
href="https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_invalid_ip_address"
href="https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-invalid-ip-address"
>
this link
</a>
Expand Down
6 changes: 3 additions & 3 deletions ERR_ERL_PERMISSIVE_TRUST_PROXY/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
<meta charset="UTF-8" />
<meta
http-equiv="refresh"
content="0; url=https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_permissive_trust_proxy"
content="0; url=https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-permissive-trust-proxy"
/>
<script type="text/javascript">
window.location.href =
"https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_permissive_trust_proxy";
"https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-permissive-trust-proxy";
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow
<a
href="https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_permissive_trust_proxy"
href="https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-permissive-trust-proxy"
>
this link
</a>
Expand Down
6 changes: 3 additions & 3 deletions ERR_ERL_UNDEFINED_IP_ADDRESS/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
<meta charset="UTF-8" />
<meta
http-equiv="refresh"
content="0; url=https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_undefined_ip_address"
content="0; url=https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-undefined-ip-address"
/>
<script type="text/javascript">
window.location.href =
"https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_undefined_ip_address";
"https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-undefined-ip-address";
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow
<a
href="https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_undefined_ip_address"
href="https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-undefined-ip-address"
>
this link
</a>
Expand Down
6 changes: 3 additions & 3 deletions ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
<meta charset="UTF-8" />
<meta
http-equiv="refresh"
content="0; url=https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_unexpected_x_forwarded_for"
content="0; url=https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-unexpected-x-forwarded-for"
/>
<script type="text/javascript">
window.location.href =
"https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_unexpected_x_forwarded_for";
"https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-unexpected-x-forwarded-for";
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow
<a
href="https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_unexpected_x_forwarded_for"
href="https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-unexpected-x-forwarded-for"
>
this link
</a>
Expand Down
6 changes: 3 additions & 3 deletions ERR_ERL_UNKNOWN_VALIDATION/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
<meta charset="UTF-8" />
<meta
http-equiv="refresh"
content="0; url=https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_unknown_validation"
content="0; url=https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-unknown-validation"
/>
<script type="text/javascript">
window.location.href =
"https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_unknown_validation";
"https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-unknown-validation";
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow
<a
href="https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#err_erl_unknown_validation"
href="https://express-rate-limit.mintlify.app/reference/error-codes#err-erl-unknown-validation"
>
this link
</a>
Expand Down
6 changes: 3 additions & 3 deletions WRN_ERL_DEPRECATED_DRAFT_POLLI_HEADERS/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
<meta charset="UTF-8" />
<meta
http-equiv="refresh"
content="0; url=https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#wrn_erl_deprecated_draft_polli_headers"
content="0; url=https://express-rate-limit.mintlify.app/reference/error-codes#wrn-erl-deprecated-draft-polli-headers"
/>
<script type="text/javascript">
window.location.href =
"https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#wrn_erl_deprecated_draft_polli_headers";
"https://express-rate-limit.mintlify.app/reference/error-codes#wrn-erl-deprecated-draft-polli-headers";
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow
<a
href="https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#wrn_erl_deprecated_draft_polli_headers"
href="https://express-rate-limit.mintlify.app/reference/error-codes#wrn-erl-deprecated-draft-polli-headers"
>
this link
</a>
Expand Down
6 changes: 3 additions & 3 deletions WRN_ERL_DEPRECATED_ON_LIMIT_REACHED/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
<meta charset="UTF-8" />
<meta
http-equiv="refresh"
content="0; url=https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#wrn_erl_deprecated_on_limit_reached"
content="0; url=https://express-rate-limit.mintlify.app/reference/error-codes#wrn-erl-deprecated-on-limit-reached"
/>
<script type="text/javascript">
window.location.href =
"https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#wrn_erl_deprecated_on_limit_reached";
"https://express-rate-limit.mintlify.app/reference/error-codes#wrn-erl-deprecated-on-limit-reached";
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow
<a
href="https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#wrn_erl_deprecated_on_limit_reached"
href="https://express-rate-limit.mintlify.app/reference/error-codes#wrn-erl-deprecated-on-limit-reached"
>
this link
</a>
Expand Down
6 changes: 3 additions & 3 deletions WRN_ERL_MAX_ZERO/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
<meta charset="UTF-8" />
<meta
http-equiv="refresh"
content="0; url=https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#wrn_erl_max_zero"
content="0; url=https://express-rate-limit.mintlify.app/reference/error-codes#wrn-erl-max-zero"
/>
<script type="text/javascript">
window.location.href =
"https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#wrn_erl_max_zero";
"https://express-rate-limit.mintlify.app/reference/error-codes#wrn-erl-max-zero";
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow
<a
href="https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#wrn_erl_max_zero"
href="https://express-rate-limit.mintlify.app/reference/error-codes#wrn-erl-max-zero"
>
this link
</a>
Expand Down
6 changes: 3 additions & 3 deletions WRN_ESD_DELAYMS/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
<meta charset="UTF-8" />
<meta
http-equiv="refresh"
content="0; url=https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#wwrn_esd_delayms"
content="0; url=https://github.com/express-rate-limit/express-slow-down#delayms"
/>
<script type="text/javascript">
window.location.href =
'https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#wrn_esd_delayms'
'https://github.com/express-rate-limit/express-slow-down#delayms'
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow
<a
href="https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes#wrn_esd_delayms"
href="https://github.com/express-rate-limit/express-slow-down#delayms"
>
this link
</a>
Expand Down
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
<meta charset="UTF-8" />
<meta
http-equiv="refresh"
content="0; url=https://github.com/express-rate-limit/express-rate-limit#readme"
content="0; url=https://express-rate-limit.mintlify.app/"
/>
<script type="text/javascript">
window.location.href =
"https://github.com/express-rate-limit/express-rate-limit#readme";
"https://express-rate-limit.mintlify.app/";
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow
<a href="https://github.com/express-rate-limit/express-rate-limit#readme">
<a href="https://express-rate-limit.mintlify.app/">
this link
</a>
to the Express Rate Limit readme.
to the Express Rate Limit documentation.
</body>
</html>

0 comments on commit 2f8a498

Please sign in to comment.