Skip to content

Commit 74d8eee

Browse files
arthurdennerSaraVieira
authored andcommitted
fix(share): Fix text generation when sharing on Twitter (codesandbox#2032)
1 parent c323ec4 commit 74d8eee

File tree

1 file changed

+6
-2
lines changed
  • packages/app/src/app/pages/common/Modals/ShareModal

1 file changed

+6
-2
lines changed

packages/app/src/app/pages/common/Modals/ShareModal/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,12 @@ class ShareView extends React.Component {
317317
small
318318
target="_blank"
319319
href={`https://twitter.com/intent/tweet?text=${encodeURIComponent(
320-
sandbox.title || sandbox.id
321-
)}.+${getEditorUrl(sandbox, mainModule, this.state)}`}
320+
`${sandbox.title || sandbox.id}. ${getEditorUrl(
321+
sandbox,
322+
mainModule,
323+
this.state
324+
)}`
325+
)}`}
322326
>
323327
Share on Twitter
324328
</Button>

0 commit comments

Comments
 (0)