You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by li...@apache.org on 2020/11/03 10:18:40 UTC
[dubbo-website] branch asf-site updated: 404
This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 478fda0 404
478fda0 is described below
commit 478fda0b590fdb02833bf4f06a40acb245c14dc1
Author: ken.lj <ke...@gmail.com>
AuthorDate: Tue Nov 3 18:17:47 2020 +0800
404
---
404.html | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/404.html b/404.html
index 780b8c8..eabb372 100644
--- a/404.html
+++ b/404.html
@@ -24,7 +24,8 @@
console.log(originalHref);
console.log(originalHref.indexOf("docs/user/"));
if (originalHref.indexOf("docs/user/") > -1) {
- window.location.href = newHref("docs/user/", "docs/2.7/user/");
+ // window.location.href = newHref("docs/user/", "docs/2.7/user/");
+ console.log(newHref("docs/user/", "docs/2.7/user/"));
} else if (originalHref.indexOf("docs/dev/") > -1) {
window.location.href = newHref("docs/dev/", "docs/2.7/dev/");
} else if (originalHref.indexOf("docs/admin/") > -1) {
@@ -50,6 +51,8 @@
if (newHref.endsWith('.html')) {
newHref = newHref.substr(0, newHref.length - 5) + "/";
}
+ console.log(part1);
+ console.log(part2);
return newHref;
}
</script>