utils.tsx 445 B

1234567891011121314
  1. import type {Organization} from 'sentry/types/organization';
  2. import {browserHistory} from 'sentry/utils/browserHistory';
  3. import normalizeUrl from 'sentry/utils/url/normalizeUrl';
  4. export function redirectToManage(organization: Organization) {
  5. browserHistory.replace(
  6. normalizeUrl({
  7. pathname: `/settings/${organization.slug}/billing/checkout/`,
  8. query: {
  9. referrer: 'replay_onboard-error-redirect',
  10. },
  11. })
  12. );
  13. }