From 9284cc77919f8e94645814237a58a4b1b55ef856 Mon Sep 17 00:00:00 2001 From: Mayank Bansal Date: Thu, 1 Jan 2026 23:43:21 +0530 Subject: [PATCH] chore: remove dev flag from identity page --- app/routes/identity.js | 6 ------ tests/unit/routes/identity-test.js | 29 ----------------------------- 2 files changed, 35 deletions(-) diff --git a/app/routes/identity.js b/app/routes/identity.js index 3c77d86d9..da885fc7f 100644 --- a/app/routes/identity.js +++ b/app/routes/identity.js @@ -10,12 +10,6 @@ export default class IdentityRoute extends Route { @service login; @service fastboot; - beforeModel(transition) { - if (transition?.to?.queryParams?.dev !== 'true') { - this.router.transitionTo('/page-not-found'); - } - } - async model() { if (this.fastboot.isFastBoot) { return null; diff --git a/tests/unit/routes/identity-test.js b/tests/unit/routes/identity-test.js index 4d983844f..82865e22c 100644 --- a/tests/unit/routes/identity-test.js +++ b/tests/unit/routes/identity-test.js @@ -25,35 +25,6 @@ module('Unit | Route | identity', function (hooks) { assert.ok(this.route); }); - test('beforeModel redirects to page-not-found when dev param is not true', function (assert) { - const transition = { - to: { - queryParams: { - dev: 'false', - }, - }, - }; - - this.route.beforeModel(transition); - assert.ok( - this.route.router.transitionTo.calledWith('/page-not-found'), - 'should redirect to page-not-found', - ); - }); - - test('beforeModel allows navigation when dev param is true', function (assert) { - const transition = { - to: { - queryParams: { - dev: 'true', - }, - }, - }; - - this.route.beforeModel(transition); - assert.notOk(this.route.router.transitionTo.called, 'should not redirect'); - }); - test('model returns null in FastBoot', async function (assert) { this.route.fastboot.isFastBoot = true; const result = await this.route.model();