Skip to content

Commit f023ef2

Browse files
authored
Merge pull request #14323 from guardian/ph-20250731-1054-investigation-p2
add query parameter to enforce local gate logic
2 parents 4703f58 + 2c6ebd9 commit f023ef2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

dotcom-rendering/src/components/SignInGateSelector.importable.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,15 @@ const decideShowDefaultGate = (): ShowGateValues => {
372372
return undefined;
373373
};
374374

375+
const decideShouldEnforceLocalLogic = (): boolean => {
376+
// July 31st
377+
// SignIn gate behavior investigation
378+
379+
const params = new URLSearchParams(window.location.search);
380+
const value: string | null = params.get('localgatelogic');
381+
return value === 'true';
382+
};
383+
375384
const buildAuxiaGateDisplayData = async (
376385
contributionsServiceUrl: string,
377386
pageId: string,
@@ -390,7 +399,7 @@ const buildAuxiaGateDisplayData = async (
390399

391400
let should_show_legacy_gate_tmp;
392401

393-
if (isAuxiaAudience) {
402+
if (!decideShouldEnforceLocalLogic() && isAuxiaAudience) {
394403
should_show_legacy_gate_tmp = false;
395404
// The actual value is irrelevant in this case, but we have the convention to set it to false here
396405
} else {

0 commit comments

Comments
 (0)