|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | +</head> |
| 6 | +<body> |
| 7 | +<!-- 添加Apache校验项开始 --> |
| 8 | +<!-- 只加a标签和img标签,不要有其余的标签出现,同时设置style="display: none" --> |
| 9 | +<a style="display: none" href="http://www.apache.org/events/current-event">Apache Dubbo is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.</a> |
| 10 | +<img style="display: none" src="http://dubbo.apache.org/img/apache_logo.png"/> |
| 11 | +<ul style="display: none"> |
| 12 | + <p class="header">ASF</p> |
| 13 | + <li><a href="http://www.apache.org">Foundation</a></li> |
| 14 | + <li><a href="http://www.apache.org/licenses/">License</a></li> |
| 15 | + <li><a href="http://www.apache.org/events/current-event">Events</a></li> |
| 16 | + <li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li> |
| 17 | + <li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li> |
| 18 | +</ul> |
| 19 | +<p style="display: none">Copyright © 2018 The Apache Software Foundation. Apache and the Apache feather logo are trademarks of The Apache Software Foundation.</p> |
| 20 | +<a style="display: none" href="http://www.apache.org/security/">Security</a> |
| 21 | +<!-- 添加Apache校验项结束 --> |
| 22 | +<script src="//cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script> |
| 23 | + |
| 24 | +<script> |
| 25 | + var originalHref = window.location.href; |
| 26 | + if (originalHref.indexOf("docs/user/") > -1) { |
| 27 | + window.location.href = newHref("docs/user/", "docs/v2.7/user/"); |
| 28 | + } else if (originalHref.indexOf("docs/dev/") > -1) { |
| 29 | + window.location.href = newHref("docs/dev/", "docs/v2.7/dev/"); |
| 30 | + } else if (originalHref.indexOf("docs/admin/") > -1) { |
| 31 | + window.location.href = newHref("docs/admin/", "docs/v2.7/admin/"); |
| 32 | + } else if (originalHref.indexOf("docs/source_code_guide/") > -1) { |
| 33 | + window.location.href = newHref("docs/source_code_guide/", "docs/v2.7/dev/source/"); |
| 34 | + } else if (originalHref.indexOf("docs/developers/") > -1) { |
| 35 | + window.location.href = newHref("docs/developers/", "contribution-guidelines/"); |
| 36 | + } else if (originalHref.indexOf("blog/index.html") >-1) { |
| 37 | + window.location.href = newHref("blog/index.html", "blog/2018/08/07/dubbo-101/"); |
| 38 | + } else { |
| 39 | + // window.location.href = "http://dubbo.apache.org/en-us/"; |
| 40 | + } |
| 41 | + |
| 42 | + function newHref(path, newPath) { |
| 43 | + var idx = originalHref.indexOf(path); |
| 44 | + var part1 = originalHref.substring(0, idx); |
| 45 | + var part2 = ""; |
| 46 | + if (idx + path.length < originalHref.length -1) { |
| 47 | + part2 = originalHref.substring(idx + path.length); |
| 48 | + } |
| 49 | + var newHref = part1 + newPath + part2; |
| 50 | + if (newHref.endsWith('.html')) { |
| 51 | + newHref = newHref.substr(0, newHref.length - 5) + "/"; |
| 52 | + } |
| 53 | + return newHref; |
| 54 | + } |
| 55 | +</script> |
| 56 | +</body> |
| 57 | +</html> |
0 commit comments