From 85d1d1182c13f44802f2ef98e5c4594aba623d19 Mon Sep 17 00:00:00 2001 From: Jen Weber Date: Thu, 2 Feb 2023 21:46:33 -0500 Subject: [PATCH] Fix infinite redirects for ember data Visiting ember-data/release caused many redirects, since semverCompare('release', '4.7') is < 0 --- app/routes/project-version.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/routes/project-version.js b/app/routes/project-version.js index 7783ae8d..2fab46c7 100644 --- a/app/routes/project-version.js +++ b/app/routes/project-version.js @@ -62,7 +62,8 @@ export default class ProjectVersionRoute extends Route { let transitionVersion = this.projectService.getUrlVersion(); if ( moduleParams?.module === 'ember-data-overview' && - semverCompare(transitionVersion, '4.7') < 0 + semverCompare(transitionVersion, '4.7') < 0 && + transitionVersion !== 'release' // infinite redirects happen without this line ) { return this.router.transitionTo('project-version.index'); }