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 d302ce4 commit c987adaCopy full SHA for c987ada
docs/page.js
@@ -17,7 +17,9 @@ if ( ! window.frameElement && window.location.protocol !== 'file:' ) {
17
18
}
19
20
- const pathSnippet = href.slice( splitIndex, - 5 );
+ const extension = href.split( '.' ).pop();
21
+ const end = ( extension === 'html' ) ? - 5 : href.length;
22
+ const pathSnippet = href.slice( splitIndex, end );
23
24
window.location.replace( docsBaseURL + '#' + pathSnippet + hash );
25
0 commit comments