Current File : /home/pacjaorg/wpt.pacja.org/wp-content/plugins/leadin/scripts/utils/queryParams.ts
export function addQueryObjectToUrl(
  urlObject: URL,
  queryParams: { [key: string]: any }
) {
  Object.keys(queryParams).forEach(key => {
    urlObject.searchParams.append(key, queryParams[key]);
  });
}

export function removeQueryParamFromLocation(key: string) {
  const location = new URL(window.location.href);
  location.searchParams.delete(key);
  window.history.replaceState(null, '', location.href);
}
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!