You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ur...@apache.org on 2022/02/17 04:28:33 UTC

[pulsar-site] branch main updated: fix: cli redirect

This is an automated email from the ASF dual-hosted git repository.

urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


The following commit(s) were added to refs/heads/main by this push:
     new a33fada  fix: cli redirect
a33fada is described below

commit a33fada4444f227d37efa8bee90b69e9130be34e
Author: LiLi <ur...@apache.org>
AuthorDate: Thu Feb 17 12:28:22 2022 +0800

    fix: cli redirect
    
    Signed-off-by: LiLi <ur...@apache.org>
---
 site2/website-next/src/components/CLI.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/site2/website-next/src/components/CLI.js b/site2/website-next/src/components/CLI.js
index 5c25245..1042dd9 100644
--- a/site2/website-next/src/components/CLI.js
+++ b/site2/website-next/src/components/CLI.js
@@ -53,9 +53,9 @@ class CLI extends React.Component {
       majorVersion === 1
     ) {
       if (version === latestVersion) {
-        window.location.href = "/docs/en" + referenceLink;
+        window.location.href = "/docs" + referenceLink;
       } else {
-        window.location.href = "/docs/en/" + version + referenceLink;
+        window.location.href = "/docs/" + version + referenceLink;
       }
     } else {
       version = parseInt(versions[0]) + "." + parseInt(versions[1]) + ".0";