Closed bigtimebuddy closed 2 years ago
isSamePage helper does not handle default pages well for selecting the ExplorerItem. For instance:
isSamePage
Example: https://pixijs.io/guides/ Notice that "Welcome" IS NOT selected
Example: https://pixijs.io/guides/index.html Notice that "Welcome" IS selected
This originates from this logic in the default-template.
https://github.com/webdoc-labs/webdoc/blob/fe0c1c1ebe7dbf1fb514ddea6bba369530dd83e5/packages/webdoc-default-template/src/app/components/Explorer/helpers.js#L1-L13
When I console.log('isSamePage', data.page, path); with in that function I get:
console.log('isSamePage', data.page, path);
isSamePage /guides/index.html /guides/.html
It returns false when it should be true.
false
true
isSamePage
helper does not handle default pages well for selecting the ExplorerItem. For instance:Example
Example: https://pixijs.io/guides/ Notice that "Welcome" IS NOT selected
Example: https://pixijs.io/guides/index.html Notice that "Welcome" IS selected
Problem
This originates from this logic in the default-template.
https://github.com/webdoc-labs/webdoc/blob/fe0c1c1ebe7dbf1fb514ddea6bba369530dd83e5/packages/webdoc-default-template/src/app/components/Explorer/helpers.js#L1-L13
When I
console.log('isSamePage', data.page, path);
with in that function I get:It returns
false
when it should betrue
.