feat: url object notation found work

This commit is contained in:
TrèsAbhi committed 2024-08-12 13:18:22 -05:00
1 parent d1fe7f6533
commit b2c4bfc926
3 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -12,6 +12,7 @@ import {
import { Box, Button, Flex, Heading, ScrollArea, Text } from '@radix-ui/themes';
import { capitalize, startCase } from 'lodash';
import { ReactNode, useEffect, useRef, useState } from 'react';
import { stringify } from 'urlon';
import { CopyButton } from '../../../../components/CopyButton';
import { NAVBAR_HEIGHT } from '../../../../components/Navbar';
import PageWrapper from '../../../../components/PageWrapper';
@@ -94,7 +95,7 @@ export default function Page({
const searchParams = new URLSearchParams({
id: `${wargaming.id}`,
state: JSON.stringify(shallowState),
state: stringify(shallowState),
});
return `${location.origin}/tools/embed/${params.embed}/host?${searchParams.toString()}`;