Skip to content

Commit 29211b1

Browse files
committed
Update to be consistent with how we parse the params
1 parent f543a9b commit 29211b1

File tree

1 file changed

+2
-1
lines changed
  • src/shared/components/TopcoderFooter

1 file changed

+2
-1
lines changed

src/shared/components/TopcoderFooter/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ export default function TopcoderFooter() {
88
const footerRef = useRef();
99
const footerInitialized = useRef(false);
1010
const [footerId, setFooterId] = useState(0);
11-
const urlParams = new URLSearchParams(window.location.href);
11+
const url = new URL(window.location.href);
12+
const urlParams = new URLSearchParams(url.search);
1213

1314
useEffect(() => {
1415
uniqueId += 1;

0 commit comments

Comments
 (0)