src/utils/url-helper.js
// which are not considered in the equivalency.
which are not considered in the equivalency.
which are not considered in the equivalency .
function areEquivalentLocations(routeA, routeB) {
  const {
    query: {
      changes: routeAChanges,
      [TechnologiesQueryParams.input]: technologiesAQuery,
      [TechnologiesQueryParams.tags]: technologiesATags,
      ...routeAQuery
    } = {},
  } = routeA;
  const {
    query: {
      changes: routeBChanges,
      [TechnologiesQueryParams.input]: technologiesBQuery,
      [TechnologiesQueryParams.tags]: technologiesBTags,
      ...routeBQuery
    } = {},
  } = routeB;
  return routeA.name === routeB.name && (JSON.stringify({
    path: routeA.path,
    query: routeAQuery,
  }) === JSON.stringify({
    path: routeB.path,
    query: routeBQuery,
  }));
}
function areEquivalentLocations ( routeA , routeB ) { const { query : { changes : routeAChanges , [ TechnologiesQueryParams . input ] : technologiesAQuery , [ TechnologiesQueryParams . tags ] : technologiesATags , ... routeAQuery } = { } , } = routeA ; const { query : { changes : routeBChanges , [ TechnologiesQueryParams . input ] : technologiesBQuery , [ TechnologiesQueryParams . tags ] : technologiesBTags , ... routeBQuery } = { } , } = routeB ; return routeA . name === routeB . name && ( JSON . stringify ( { path : routeA . path , query : routeAQuery , } ) === JSON . stringify ( { path : routeB . path , query : routeBQuery , } ) ) ; }
which are not considered in the equivalency.
which are not considered in the equivalency .
// Remove the aforementioned query parameters because they're not considered in equivalency.