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/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new 9bff0fe0e46 Fix DocsVersionDropdownNavbarItem link
9bff0fe0e46 is described below
commit 9bff0fe0e46a6ec971be6ae98eb609f3e0d7f98f
Author: tison <[email protected]>
AuthorDate: Tue Nov 15 20:25:41 2022 +0800
Fix DocsVersionDropdownNavbarItem link
Signed-off-by: tison <[email protected]>
---
site2/website-next/src/theme/DocsVersionDropdownNavbarItem.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/site2/website-next/src/theme/DocsVersionDropdownNavbarItem.js
b/site2/website-next/src/theme/DocsVersionDropdownNavbarItem.js
index 628908a73bc..35bff76814f 100644
--- a/site2/website-next/src/theme/DocsVersionDropdownNavbarItem.js
+++ b/site2/website-next/src/theme/DocsVersionDropdownNavbarItem.js
@@ -49,7 +49,7 @@ export default function DocsVersionDropdownNavbarItem({
// We try to link to the same doc, in another version
// When not possible, fallback to the "main doc" of the version
const _version = version.name === "current" ? "/next" : "/" +
version.name;
- const _docId = activeDocContext.activeDoc.id === "about" ? "/" :
activeDocContext.activeDoc.id;
+ const _docId = activeDocContext.activeDoc.id === "about" ? "/" : "/" +
activeDocContext.activeDoc.id;
const versionDoc = {
path: "/docs" + _version + _docId,
};