You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by si...@apache.org on 2020/05/07 07:48:44 UTC

[pulsar] branch master updated: Fixed client api error link (#6904)

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

sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 464df75  Fixed client api error link (#6904)
464df75 is described below

commit 464df758429545f344e54ecd42727d7da61ec7e3
Author: guangning <gu...@apache.org>
AuthorDate: Thu May 7 15:48:28 2020 +0800

    Fixed client api error link (#6904)
    
    Fixed https://github.com/apache/pulsar/issues/6900
    
    ### Motivation
    
    The current version only includes 2.5.0-SNAPSHOT, not 2.5.1-SNAPSHOT, so 2.5.0-SNAPSHOT is used.
    
    ### Modifications
    
    * Fix version number replacement problem
    
    ### Verifying this change
    
    Local test pass
---
 site2/website/scripts/replace.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/site2/website/scripts/replace.js b/site2/website/scripts/replace.js
index ac1a23b..d8bd675 100644
--- a/site2/website/scripts/replace.js
+++ b/site2/website/scripts/replace.js
@@ -91,8 +91,8 @@ function clientVersionUrl(version, type) {
   var minorVersion = parseInt(versions[1])
   if (majorVersion === 2 && minorVersion < 5) {
     return `/api/` + type + `/` + version;
-  } else if (majorVersion === 2 && minorVersion >= 5) {
-    return `/api/` + type + `/` + version + `-SNAPSHOT`
+  } else if (majorVersion >= 2 && minorVersion >= 5) {
+    return `/api/` + type + `/` + majorVersion + `.` + minorVersion + `.0` + `-SNAPSHOT`
   }
 }