From 095b79b23a2630064b91063dbe261bca5cd35188 Mon Sep 17 00:00:00 2001 From: Mark Bouslog Date: Wed, 11 Sep 2024 13:06:29 -0500 Subject: [PATCH] Update newUrl in router.jsx (#7174) Per subsequent conditional I think this should use `let`. --- app/router.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/router.jsx b/app/router.jsx index c7f24d16d3..2cf780936d 100644 --- a/app/router.jsx +++ b/app/router.jsx @@ -70,7 +70,7 @@ class ONE_UP_REDIRECT extends React.Component { function redirectAboutPage (nextState, replace, done) { try { const { pathname } = nextState.location - const newUrl = `https://fe-root.preview.zooniverse.org${pathname}` + let newUrl = `https://fe-root.preview.zooniverse.org${pathname}` if (window.location.hostname === 'www.zooniverse.org') { newUrl = `https://www.zooniverse.org${pathname}` }