const redirectURL = (path) => {
  const host = window?.location?.hostname;
  const port = window?.location?.port ? `:${window.location.port}` : "";
  const protocol = window?.location?.protocol;
  return `${protocol}//${host}${port}${path}`;
};

export default redirectURL;
