Skip to content

MMI-3381 CHES outage#2531

Merged
Fosol merged 1 commit intobcgov:devfrom
Fosol:mmi-3381
Dec 15, 2025
Merged

MMI-3381 CHES outage#2531
Fosol merged 1 commit intobcgov:devfrom
Fosol:mmi-3381

Conversation

@Fosol
Copy link
Collaborator

@Fosol Fosol commented Dec 15, 2025

DRAFT

This has a minor fix and a workaround because of the CHES outage. It redirects unauthenticated users back to the subscriber site if they click one of our earlier email URL values.

@Fosol Fosol self-assigned this Dec 15, 2025
@Fosol Fosol added the bug Something isn't working label Dec 15, 2025
<div className="main-window">
<LayoutErrorBoundary>
<main>
<Outlet />
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's an unauthenticated attempt to view the reports then redirect to subscriber site. This is part of a temporary work around.

const htmlBlob = new Blob([email.body], { type: 'text/html' });
const textBlob = new Blob([email.body], { type: 'text/plain' });
// Replace the URL so that it points to the external site.
let fixed_body = email.body;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need the email to only use the external URL. Because we are generating it in the Editor application it can result in the wrong one.

@Fosol Fosol marked this pull request as ready for review December 15, 2025 22:19
@Fosol Fosol merged commit c9d56f5 into bcgov:dev Dec 15, 2025
1 check passed
@Fosol Fosol deleted the mmi-3381 branch December 15, 2025 22:19
Fosol added a commit to Fosol/tno that referenced this pull request Dec 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant