# Link direto para postagem do Discourse

**URL:** <https://meta.discourse.org/t/discourse-post-direct-copy-link/271993>\
**Category:** Theme component\
**Tags:** deprecated, included-in-core, copy-link\
**Created:** [18 Julho , 2023 14:18 UTC](https://meta.discourse.org/t/discourse-post-direct-copy-link/271993 "2023-07-18T14:18:59Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)\
**Post date:** [8 Dezembro , 2023 01:51 UTC](https://meta.discourse.org/t/discourse-post-direct-copy-link/271993/8 "2023-12-08T01:51:37Z")

</div>

Trabalhei com @chapoi para mesclar isso no core esta semana, e está aqui agora:

> <https://github.com/discourse/discourse/pull/24709/files>
>
> This commit ports the feature by @chapoi that was
> previously a theme component …in core.
> 
> A new post\_menu button, copyLink, is added and used
> as the default instead of share.
> 
> copyLink, on desktop, will copy the link of the post
> to the user's clipboard and show a nice 'lil animation.
> On mobile the native share menu will be shown.
> 
> If site owners want the old behaviour back, they just
> need to change the post\_menu site setting to use
> the share button instead of copyLink.
> 
> !\[image\](https://github.com/discourse/discourse/assets/920448/3edb33f2-3ea3-407e-8c1b-dd687f8284b3)
> 
> Original theme component: https://github.com/chapoi/discourse-post-direct-copy

**Você deve desinstalar este componente de tema se o tiver instalado.**

Um novo botão `post_menu`, `copyLink`, é adicionado e usado como padrão em vez de compartilhar. Se os proprietários do site quiserem o comportamento antigo de volta, eles só precisam alterar a configuração do site `post_menu` para usar o botão de compartilhamento em vez de `copyLink`.

No desktop, este botão copiará o link da postagem para a área de transferência do usuário e mostrará uma animação agradável. No celular, o menu de compartilhamento nativo será exibido.

---

_[View the full topic](https://meta.discourse.org/t/discourse-post-direct-copy-link/271993)._
