You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@curator.apache.org by ti...@apache.org on 2023/08/16 00:53:55 UTC

[curator-site] 02/02: fix: open static javadoc site on a new tab so that it is force reloaded

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

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

commit d63af8b15ec3439eaf0218360513d9a2dc4e3b76
Author: tison <wa...@gmail.com>
AuthorDate: Wed Aug 16 08:52:40 2023 +0800

    fix: open static javadoc site on a new tab so that it is force reloaded
    
    Otherwise, Docusaurus will try to route within the React App which
    cannot find the static site (since it's static, it isn't resigered on
    the React router).
    
    Signed-off-by: tison <wa...@gmail.com>
---
 sidebars.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sidebars.js b/sidebars.js
index 0c03d3a..dee043f 100644
--- a/sidebars.js
+++ b/sidebars.js
@@ -74,7 +74,7 @@ const sidebars = {
         },
         'zk-compatibility-34',
         'breaking-changes',
-        {type: 'link', label: 'Javadoc', href: '/apidocs/'},
+        {type: 'link', label: 'Javadoc', href: 'pathname:///apidocs/'},
         {type: 'link', label: 'Wiki', href: 'https://cwiki.apache.org/confluence/display/CURATOR'},
         {type: 'html', defaultStyle: true, value: 'EXTENSIONS'},
         'service-discovery',