Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Commit

Permalink
fix(dikweb): fix broken broken copy URL
Browse files Browse the repository at this point in the history
  • Loading branch information
resqiar committed Aug 23, 2021
1 parent ffd4393 commit 3b9b5e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dikweb/components/feed/FeedMoreItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ export default function FeedMoreItem(props: Props) {
const handleCopyClick = () => {
// write/save the url to clipboard
navigator.clipboard.writeText(
`${process.env.NEXT_PUBLIC_FRONTEND_HOST}/${props.postAuthorUsername}/${props.postId}`
`${
process.env.NEXT_PUBLIC_FRONTEND_HOST
}/${props.postAuthorUsername.replaceAll(' ', '%20')}/${
props.postId
}`
)

// close menu and trigger Snackbar
Expand Down

1 comment on commit 3b9b5e0

@vercel
Copy link

@vercel vercel bot commented on 3b9b5e0 Aug 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.