# 帖子日期无法右键单击复制链接了

**URL:** <https://meta.discourse.org/t/post-date-cant-be-right-clicked-to-copy-link-anymore/223457>\
**Category:** Bug\
**Tags:** size-s\
**Created:** [2022年四月6日 06:19 UTC](https://meta.discourse.org/t/post-date-cant-be-right-clicked-to-copy-link-anymore/223457 "2022-04-06T06:19:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![blattersturm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blattersturm/32/76134_2.png) [@blattersturm](https://meta.discourse.org/u/blattersturm)\
**Post date:** [2022年四月6日 06:19 UTC](https://meta.discourse.org/t/post-date-cant-be-right-clicked-to-copy-link-anymore/223457/1 "2022-04-06T06:19:28Z")

</div>

自添加分享帖子模态框以来，帖子日期链接不再是链接，也无法右键单击“复制链接地址”进行分享，而是\_必须\_使用模态框。

这破坏了一些\_相当古老\_的工作流程：

> [@UX of copying to clipboard the link to a post](https://meta.discourse.org/t/ux-of-copying-to-clipboard-the-link-to-a-post/26342/4?u=blattersturm):
>
> Yes, right click the timestamp. [image] I am not sure right clicking a “button” is an expected activity, personally.

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/f/9fd8a9084ea16d66eb60b52d65ca88f729427c58.png)

是的，新的模态框对于不了解旧方法的人来说更明显，但它要求我比浏览器上下文菜单移动鼠标（或在移动设备上长按时移动手指）的距离更远，而且在新模态框实现时，这个功能可能被意外删除了。

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2022年四月7日 01:45 UTC](https://meta.discourse.org/t/post-date-cant-be-right-clicked-to-copy-link-anymore/223457/2 "2022-04-07T01:45:47Z")

</div>

嗯，将链条变成一个你可以右键单击并复制的链接会不会更自然？

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/6/a/56ab331f74af39279b2d57c2ddc8289cc6c4f746.png)

我想知道我们是否能让它实现。

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2022年四月7日 18:44 UTC](https://meta.discourse.org/t/post-date-cant-be-right-clicked-to-copy-link-anymore/223457/3 "2022-04-07T18:44:20Z")

</div>

我确实注意到，右键单击右上角的日期戳不再像以前那样行事了……我们可能有点退步了。我需要在我的台式机上检查一下，我现在用的是 Chromebook，但这是我们有时会遇到的“链接不像普通链接那样行事”的问题。

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2022年四月7日 23:36 UTC](https://meta.discourse.org/t/post-date-cant-be-right-clicked-to-copy-link-anymore/223457/4 "2022-04-07T23:36:48Z")

</div>

哦……嗯，时间戳很容易修复，我们可以引入一个测试来确保它不会再次出现问题。

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/3/6/636921cc35831d8f937fefbb6ae51d0a1553b376.png)

调整帖子底部的链条非常复杂，这可能是一项中等规模的工作。我们可以暂时跳过。

分配这项工作，我们将为链接添加一个 href，我们可以在下周修复它。

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2022年四月8日 17:12 UTC](https://meta.discourse.org/t/post-date-cant-be-right-clicked-to-copy-link-anymore/223457/6 "2022-04-08T17:12:07Z")

</div>

我们最近重构了那个模态框，并且遗漏了该功能。抱歉。

> [@sam](#):
>
> 正在分配此任务，我们将为链接添加 href，我们可以在下周修复此问题。

@nbianca 你能把它加到你的列表里吗？

---

<div class="post-metadata">

**Author:** ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)\
**Post date:** [2022年四月11日 16:19 UTC](https://meta.discourse.org/t/post-date-cant-be-right-clicked-to-copy-link-anymore/223457/7 "2022-04-11T16:19:03Z")

</div>

我在此 PR 中重新添加了 URL：

> <https://github.com/discourse/discourse/pull/16436>
>
> The href was removed in commit 08a1f41582534c2793ca21d67df34ef6821b40d0,
> but it… was useful to quick copy the URL to the post.

---

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2022年四月13日 19:35 UTC](https://meta.discourse.org/t/post-date-cant-be-right-clicked-to-copy-link-anymore/223457/8 "2022-04-13T19:35:49Z")

</div>

似乎有一个新的修复程序。在过去的几个小时里，如果在移动设备上点击帖子日期，会出现奇怪的行为。

我在[这里](https://meta.discourse.org/t/what-does-only-visible-to-members-of-group-tell-me/224144)截了移动视图的截图，但现在无法在移动设备上访问了。所以这里似乎有问题。

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2022年四月13日 22:09 UTC](https://meta.discourse.org/t/post-date-cant-be-right-clicked-to-copy-link-anymore/223457/9 "2022-04-13T22:09:42Z")

</div>

我同意 @nbianca 的说法，看起来修复没有按计划进行 😅

链接显示出来了，但至少在桌面端，我无法再让模态框显示了。

---

<div class="post-metadata">

**Author:** ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)\
**Post date:** [2022年四月14日 03:10 UTC](https://meta.discourse.org/t/post-date-cant-be-right-clicked-to-copy-link-anymore/223457/10 "2022-04-14T03:10:15Z")

</div>

应该通过刚刚合并的 [FIX: Href attribute for post-date link by pmusaraj · Pull Request #16471 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/16471) 来修复。

---

<div class="post-metadata">

**Author:** ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)\
**Post date:** [2022年四月16日 12:00 UTC](https://meta.discourse.org/t/post-date-cant-be-right-clicked-to-copy-link-anymore/223457/13 "2022-04-16T12:00:21Z")

</div>

此主题在 47 小时后自动关闭。不再允许回复。
