|
@@ -17,11 +17,11 @@ export function checkDeviceAndRedirect() {
|
|
|
const isMobileDevice = isMobile();
|
|
|
const currentPath = window.location.pathname;
|
|
|
const isInMobilePath = currentPath.includes("/mobile/");
|
|
|
- const isInPCPath = currentPath.includes("/pc/");
|
|
|
+ const isInPCPath = currentPath.includes("/web/");
|
|
|
|
|
|
if (isMobileDevice && !isInMobilePath) {
|
|
|
- window.location.href = currentPath.replace("/pc/", "/mobile/");
|
|
|
+ window.location.href = currentPath.replace("/web/", "/mobile/");
|
|
|
} else if (!isMobileDevice && !isInPCPath) {
|
|
|
- window.location.href = currentPath.replace("/mobile/", "/pc/");
|
|
|
+ window.location.href = currentPath.replace("/mobile/", "/web/");
|
|
|
}
|
|
|
}
|