if (location.host.endsWith("gatsbyjs.io")) { const urlRedirect = `http://example.com${location.pathname}${location.search}` setRefreshContent(`0;URL="${urlRedirect}"`) }