We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1893e4 commit c1b4b6fCopy full SHA for c1b4b6f
src/components/Menu/VersionSwitcher/index.tsx
@@ -130,6 +130,8 @@ export function LibVersionSwitcher({
130
urlEnd = url.split("/lib")[1];
131
}
132
133
+ // Function to remove query string parameters before checking if href is included in the list of possibilities.
134
+ // This is so we are only comparing the paths without the query string parameters to avoid false negatives.
135
function isHrefIncluded(href: string, paths: string[]) {
136
href = href.split("#")[0];
137
if (href.endsWith("/")) {
0 commit comments