Only encode path of url
This commit is contained in:
parent
60eb7bca64
commit
941808a67a
@ -103,17 +103,17 @@ export default function () {
|
|||||||
return (
|
return (
|
||||||
<Tr>
|
<Tr>
|
||||||
<Td>{entry.destination}</Td>
|
<Td>{entry.destination}</Td>
|
||||||
<Td
|
<Td>
|
||||||
onClick={() => {
|
<Link
|
||||||
navigator.clipboard.writeText(
|
onClick={async () => {
|
||||||
encodeURIComponent(
|
await navigator.clipboard.writeText(
|
||||||
`https://carcrushe.rs/${entry.path}`,
|
`https://carcrushe.rs/${encodeURIComponent(entry.path)}`,
|
||||||
),
|
|
||||||
);
|
);
|
||||||
alert("Link copied");
|
alert("Link copied");
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
https://carcrushe.rs/{entry.path}
|
https://carcrushe.rs/{entry.path}
|
||||||
|
</Link>
|
||||||
</Td>
|
</Td>
|
||||||
<Td>
|
<Td>
|
||||||
<IconButton
|
<IconButton
|
||||||
|
Loading…
x
Reference in New Issue
Block a user