@@ -31,6 +31,7 @@ import {
31
31
retrieveDismissedCount ,
32
32
setUserDismissedGate ,
33
33
} from './SignInGate/dismissGate' ;
34
+ import { pageIdIsAllowedForGating } from './SignInGate/displayRule' ;
34
35
import { SignInGateAuxia } from './SignInGate/gateDesigns/SignInGateAuxia' ;
35
36
import { signInGateTestIdToComponentId } from './SignInGate/signInGateMappings' ;
36
37
import type {
@@ -370,38 +371,6 @@ const SignInGateSelectorDefault = ({
370
371
// Auxia Integration Experiment //
371
372
// -------------------------------
372
373
373
- /*
374
- Date: 29th April 2025
375
-
376
- We have a request to prevent sign-in gate for a specific URL. This feels like an
377
- adhoc request and not a new general feature to implement.
378
-
379
- We have a check in SDC: https://github.com/guardian/support-dotcom-components/pull/1345 ,
380
- to prevent the Auxia gate from showing, but we also need to prevent the legacy gate from
381
- showing. For a cleaner implementation. we are simply going to prevent any of the two
382
- gates components from rendering.
383
-
384
- To keep things simple, we are going to add a check in SignInGateSelector, which seems
385
- like a good place.
386
- */
387
-
388
- export const pageIdIsAllowedForGating = ( pageId : string ) : boolean => {
389
- // This function was introduced to handle the specific request of not showing a gate for
390
- // this url: https://www.theguardian.com/tips
391
-
392
- // pageId is the path without the starting slash
393
- // example:
394
- // - full url: https://www.theguardian.com/world/2025/apr/29/canada-election-result-liberal-win-mark-carney-anti-trump
395
- // - pageId: world/2025/apr/29/canada-election-result-liberal-win-mark-carney-anti-trump
396
-
397
- const denyPaths = [
398
- 'tips' ,
399
- 'help/ng-interactive/2017/mar/17/contact-the-guardian-securely' ,
400
- ] ;
401
-
402
- return ! denyPaths . some ( ( denyPath ) => pageId . startsWith ( denyPath ) ) ;
403
- } ;
404
-
405
374
export const SignInGateSelector = ( {
406
375
contentType,
407
376
sectionId = '' ,
0 commit comments