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