Skip to content

Commit

Permalink
refactor: update redirect condition
Browse files Browse the repository at this point in the history
  • Loading branch information
natanchik committed Jun 24, 2024
1 parent 0c1f6a0 commit ea5c115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const router = createBrowserRouter(routes);

function App() {
// If we are on https://rollingscopes.com/, a redirect to https://rs.school/ is triggered.
if (window.location.hostname === 'rollingscopes.com') {
if (window.location.hostname.includes('rollingscopes.com')) {
window.location.href = 'https://rs.school';
}

Expand Down

0 comments on commit ea5c115

Please sign in to comment.