Skip to content

Commit

Permalink
Update newUrl in router.jsx (#7174)
Browse files Browse the repository at this point in the history
Per subsequent conditional I think this should use `let`.
  • Loading branch information
mcbouslog authored Sep 11, 2024
1 parent 96ad4d4 commit 095b79b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/router.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
}
Expand Down

0 comments on commit 095b79b

Please sign in to comment.