File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ import { useGAVersion } from "../../hooks"
4141import { GAVersion , Url } from "../../constants"
4242import Spinner from "../Spinner"
4343import { linkData } from "./links"
44- import GA4Toggle from "./GA4Toggle"
4544import BugReport from "./BugReport"
4645import Loadable from "../Loadable"
4746import useLogin2 , { UserStatus } from "./useLogin"
@@ -130,7 +129,12 @@ const Template: React.FC<PropsWithChildren<LayoutProps & TemplateProps>> = ({
130129 const newLocation = window . location . href . replace ( window . location . hostname , newHostname ) ;
131130 window . location . replace ( newLocation ) ;
132131 }
133- //}, 1000);
132+
133+ if ( ! window . location . search && window . location . pathname === '/' ) {
134+ const newLocation = window . location . pathname = '/ga4/' ;
135+ window . location . replace ( newLocation ) ;
136+ }
137+ //}, 1000);
134138
135139 return ;
136140 } , [ ] ) ;
Original file line number Diff line number Diff line change 11import * as React from "react"
22import { styled } from '@mui/material/styles' ;
33import { useTheme } from "@mui/material"
4- import { Circles } from " react-loader-spinner"
4+ import { Circles } from ' react-loader-spinner'
55import { PropsWithChildren } from 'react' ;
66
77const PREFIX = 'Spinner' ;
You can’t perform that action at this time.
0 commit comments