diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts index 393cfdc6a..23a6111f2 100644 --- a/src/app/home/home.component.ts +++ b/src/app/home/home.component.ts @@ -129,7 +129,7 @@ export class HomeComponent implements OnInit { } // start the redirect 12 hours in advance of CC open: - const startRedirectingToCCAt = new Date('2023-11-28T00:00:00+00:00'); + const startRedirectingToCCAt = new Date('2023-10-28T00:00:00+00:00'); // end the redirect exactly at the time CC closes. if ( @@ -137,7 +137,13 @@ export class HomeComponent implements OnInit { this.currentTime >= startRedirectingToCCAt && this.currentTime < CCCloseDate && isPlatformBrowser(this.platformId)) { - this.router.navigate(['/christmas-challenge-2023']); + this.router.navigate( + ['/christmas-challenge-2023'], + { + replaceUrl: true, // As we are redirecting imediatly it would be confusing to leave a page the user hasn't seen in their history. + + } + ); } }