We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e881a8 commit 0d6bc56Copy full SHA for 0d6bc56
docs/dokka-presets/scripts/custom-navigation-loader.js
@@ -15,12 +15,12 @@ function extractModulePath(href) {
15
.filter(Boolean); // drop empty parts
16
17
// the URL pattern is always ".../kotlin/api/<version>/..."
18
- const apiPos = segments.indexOf('api');
19
- if (apiPos === -1) return null;
+ const apiIndex = segments.indexOf('api');
+ if (apiIndex === -1) return null;
20
21
// segment after "api" is the version ("latest", "1.4.109", etc.)
22
// segment after _that_ is the module name (or "index.html" if we're at the root)
23
- return segments[apiPos + 2] ?? 'index.html';
+ return segments[apiIndex + 2] ?? 'index.html';
24
} catch {
25
return null;
26
}
0 commit comments