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 0bb97cd commit 20a165aCopy full SHA for 20a165a
EssentialCSharp.Web/wwwroot/js/site.js
@@ -80,10 +80,9 @@ const completedFeaturesList = [
80
function findCurrentPage(path, items) {
81
for (const item of items) {
82
const itemPath = [item, ...path];
83
- if (window.location.href.endsWith("/" + item.href)) {
84
- return itemPath;
85
- }
86
- if (window.location.href.endsWith("/" + item.key)) {
+ if (window.location.href.endsWith("/" + item.href) ||
+ window.location.href.endsWith("/" + item.key)
+ ) {
87
return itemPath;
88
}
89
0 commit comments