Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const Error = ({ heading, children, ...props }: ErrorPropTypes) => {
<BoxHeading>{heading ?? `Uh-oh, there's been a glitch`}</BoxHeading>
{children ?? <>
We're not quite sure what went wrong. Restart your browser. If this doesn't solve
the problem, visit our <a href="https://openstax.secure.force.com/help" target="_blank">Support Center</a>.
the problem, visit our <a href="https://help.openstax.org" target="_blank">Support Center</a>.
</>}
<BoxEventId data-testid='event-id'>{context.error?.eventId || lastEventId}</BoxEventId>
</BoxBody>
Expand Down
4 changes: 2 additions & 2 deletions src/components/ErrorBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ const Error = ({ children, ...props }: React.PropsWithChildren<ErrorPropTypes>)
const defaultErrorFallbacks = {
'generic': <Error data-testid='error-fallback' />,
'SessionExpiredError': <Error heading='Your session has expired'>
Please refresh your browser and try again. If this doesn't solve the problem, visit our <a href="https://openstax.secure.force.com/help" target="_blank">Support Center</a>.
Please refresh your browser and try again. If this doesn't solve the problem, visit our <a href="https://help.openstax.org" target="_blank">Support Center</a>.
</Error>,
'UnauthorizedError': <Error heading="Uh-oh, it seems you can't access this page.">
You may not have the required permissions or may have been logged out. Try refreshing the page or restarting your browser.
If the issue persists, visit our <a href="https://openstax.secure.force.com/help" target="_blank">Support Center</a>.
If the issue persists, visit our <a href="https://help.openstax.org" target="_blank">Support Center</a>.
</Error>
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/ErrorModal.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('Modal', () => {
render(
<ErrorModal heading='Scores not sent' onModalClose={jest.fn()} show={true}>
There was an issue syncing your scores. Please try again in a few minutes. If the issue persists, visit our
<a href="https://openstax.secure.force.com/help" target="_blank" rel="noreferrer">Support Center</a>.
<a href="https://help.openstax.org" target="_blank" rel="noreferrer">Support Center</a>.
</ErrorModal>, { container: root }
);
expect(document.body).toMatchSnapshot();
Expand Down
2 changes: 1 addition & 1 deletion src/components/__snapshots__/Error.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ exports[`Error matches snapshot 1`] = `
</h3>
We're not quite sure what went wrong. Restart your browser. If this doesn't solve the problem, visit our
<a
href="https://openstax.secure.force.com/help"
href="https://help.openstax.org"
target="_blank"
>
Support Center
Expand Down
4 changes: 2 additions & 2 deletions src/components/__snapshots__/ErrorModal.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ exports[`Modal matches snapshot 1`] = `
</h3>
We're not quite sure what went wrong. Restart your browser. If this doesn't solve the problem, visit our
<a
href="https://openstax.secure.force.com/help"
href="https://help.openstax.org"
target="_blank"
>
Support Center
Expand Down Expand Up @@ -224,7 +224,7 @@ exports[`Modal matches snapshot when heading and children are set 1`] = `
</h3>
There was an issue syncing your scores. Please try again in a few minutes. If the issue persists, visit our
<a
href="https://openstax.secure.force.com/help"
href="https://help.openstax.org"
rel="noreferrer"
target="_blank"
>
Expand Down
Loading