Skip to content

Commit ee51be5

Browse files
Merge pull request #4 from robinmordasiewicz/feature/issue-3-sidebar-path-fix
fix: update sidebar path references from xcsh to f5xc-api-fixed
2 parents 51dbc36 + 50b812d commit ee51be5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/javascripts/sidebar-fix.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if (!window.__navigationFixInitialized) {
1313
window.__navigationFixInitialized = true;
1414

1515
function isHomePage(path) {
16-
return path.endsWith('/xcsh/') || path.endsWith('/xcsh/index.html') || path === '/';
16+
return path.endsWith('/f5xc-api-fixed/') || path.endsWith('/f5xc-api-fixed/index.html') || path === '/';
1717
}
1818

1919
function fixSidebar() {
@@ -50,7 +50,7 @@ if (!window.__navigationFixInitialized) {
5050
// Check if this tab matches the current path
5151
// Match if the current path starts with the tab path (for section matching)
5252
// But not for home page (exact match only)
53-
var isHome = tabPath === '/xcsh/' || tabPath.endsWith('/xcsh/');
53+
var isHome = tabPath === '/f5xc-api-fixed/' || tabPath.endsWith('/f5xc-api-fixed/');
5454
var pathMatches = isHome
5555
? isHomePage(path)
5656
: path.startsWith(tabPath) && !isHomePage(path);

0 commit comments

Comments
 (0)