Skip to content

Commit

Permalink
Redirect users after a reject all.
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsola-guardian committed Dec 27, 2024
1 parent defe0ae commit 1b3bd5d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libs/@guardian/libs/src/consent-management-platform/sourcepoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,17 @@ export const init = (
)
) {
setTimeout(invokeCallbacks, 0);

if (
choiceTypeID === SourcePointChoiceTypes.RejectAll &&
message_type === 'gdpr' &&
!subscribed
) {
console.log('User has rejected all');
window.location.replace(
`https://support.theguardian.com/uk/contribute?redirectUrl=${window.location.href}`,
);
}
}
},
onPrivacyManagerAction: function (message_type, pmData) {
Expand Down

0 comments on commit 1b3bd5d

Please sign in to comment.