Skip to content

Commit

Permalink
de-dupe using pathname instead of href URL properties to avoid diffs …
Browse files Browse the repository at this point in the history
…due to video param
  • Loading branch information
Sartxi committed Aug 1, 2024
1 parent 0871d8b commit 4360989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/blocks/locui/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export async function findFragments() {
if (fragments.length > 0) {
fragments.forEach((fragment) => {
// De-dupe across pages that share fragments
const dupe = acc.some((url) => url[0]?.href === fragment.href);
const dupe = acc.some((url) => url[0]?.pathname === fragment.pathname);
if (!dupe) acc.push([fragment]);
});
}
Expand Down

0 comments on commit 4360989

Please sign in to comment.