Skip to content

Commit

Permalink
[Web] [Chore] 리다이렉션 체크 콘솔
Browse files Browse the repository at this point in the history
  • Loading branch information
suwonthugger committed Nov 10, 2024
1 parent 263358a commit 479ca3a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/web/src/shared/components/layout/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,14 @@ const Header = () => {
navigator.userAgent,
);
};

console.log(navigator.userAgent, isMobile(), window.location.hostname);
console.log(
`https://m.rankit.run${window.location.pathname}${window.location.search}`,
);

if (isMobile() && window.location.hostname === 'www.rankit.run') {
const newUrl = `https://m.rankit.run${window.location.pathname}`;
const newUrl = `https://m.rankit.run${window.location.pathname}${window.location.search}`;
window.location.replace(newUrl);
}

Expand Down

0 comments on commit 479ca3a

Please sign in to comment.