Skip to content

Commit b076237

Browse files
authored
fix(site) Missing second navigation (#2022)
1 parent f83e050 commit b076237

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Navigation/Navigation.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ export default class Navigation extends React.Component {
131131

132132
if (link.children) {
133133
return link.children.some(child => {
134-
return (new RegExp("^/" + child.url + ".*/")).test(pageUrl);
134+
return (new RegExp("^/" + child.url + ".*")).test(pageUrl);
135135
});
136136

137-
} else return (new RegExp("^/" + link.url +".*/")).test(pageUrl);
137+
} else return (new RegExp("^/" + link.url +".*")).test(pageUrl);
138138
}
139139

140140
/**

0 commit comments

Comments
 (0)