Skip to content

Commit a03a11f

Browse files
committed
Redirect the root page to ga4 without breaking the Bitly auth.
1 parent 89bace1 commit a03a11f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Layout/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const Template: React.FC<PropsWithChildren<LayoutProps & TemplateProps>> = ({
130130
window.location.replace(newLocation);
131131
}
132132

133-
if( window.location.pathname.indexOf('ga4') == -1 ) {
133+
if( !window.location.search && window.location.pathname === '/' ) {
134134
const newLocation = window.location.pathname = '/ga4/';
135135
window.location.replace(newLocation);
136136
}

0 commit comments

Comments
 (0)