# 出错了：找不到请求的 url 或资源

**URL:** https://meta.discourse.org/t/url/402747
**Category:** Bug
**Tags:** fixed
**Created:** [2026年五月12日 05:51 UTC](https://meta.discourse.org/t/url/402747 "2026-05-12T05:51:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![singi2016cn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/singi2016cn/32/532755_2.png) [@singi2016cn](https://meta.discourse.org/u/singi2016cn)
#### Post date: [2026年五月12日 05:51 UTC](https://meta.discourse.org/t/url/402747/1 "2026-05-12T05:51:15Z")

</div>

这是discourse本身的问题，不是插件的问题，应该可以在任何帖子下面复现出来。下面的例子来自：[地理屏蔽插件 - 自定义 / 插件 - Discourse Meta](https://meta.discourse.org/t/geo-blocking-plugin/227824/43)

复现步骤：  
1、 展开回复列表

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/6/9/369876a54a44fcee2c6a543ff5d48f3a3bb34d60.jpeg)

2、点击 跳到帖子

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/d/e/cde3f39962c7c0a67fcd54630e0641765544eac4.jpeg)

3、编辑对应的帖子，不修改，直接保存编辑。

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/5/9/b59ddbf1fd61a4633a0b5fbf08a33dba27225ae0.jpeg)

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/2/6/a26946d85feea5dc6e1d3533ddae239bb154c319.jpeg)

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/e/c/bec98518addb8fad4da2a9ed1d9f690118947a01.jpeg)

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [2026年五月12日 06:29 UTC](https://meta.discourse.org/t/url/402747/2 "2026-05-12T06:29:12Z")

</div>

可以确认这个 bug。控制台显示：

 ![CleanShot 2026-05-12 at 09.27.25@2x](https://global.discourse-cdn.com/meta/original/4X/2/b/d/2bd416d92520a5f19a248b3f8f2429c3dd29b2f1.png)

虽然不能 100% 确定与此相关。

这似乎特定于作为回复的帖子。我可以在地理屏蔽话题中的两个示例上复现此问题。

---

<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: [2026年五月12日 13:29 UTC](https://meta.discourse.org/t/url/402747/4 "2026-05-12T13:29:36Z")

</div>

我能够在本地复现，但情况比我预想的要复杂一些。不过，我正在修复中。

> <https://github.com/discourse/discourse/pull/39919>
>
> Editing a post that's a reply produced a "The requested URL or resource could no…t be found" dialog when the post had been viewed via its parent's expanded replies list. The dialog came from a \`PUT /post\_replies/:id\` request that 404s; the URL should be \`PUT /posts/:id\`.
> 
> \`loadMoreReplies\` calls \`store.find("post-reply", …)\` then \`store.createRecord("post", reply)\` on each result. The first stamps \`\_\_type = "post-reply"\` (and \`\_\_munge\`, \`\_\_state\`) onto each model. The second re-hydrates the same \`id\` under \`post\` — and the topic stream's canonical post for that \`id\` is already in the store. \`\_hydrate\`'s "update existing" path copies those internal fields onto the canonical record via \`setProperties\`, so a later \`post.save()\` builds its URL from the wrong \`\_\_type\`.
> 
> Fix: skip every \`\_\_\`-prefixed key when diffing in \`\_hydrate\`'s update path. Internal store/RestModel metadata stamped at hydration time has no business being carried across types. The \`\_\_\` prefix is the existing convention for "internal", so future additions are protected by the same guard.
> 
> https://meta.discourse.org/t/402747

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2026年五月15日 13:29 UTC](https://meta.discourse.org/t/url/402747/5 "2026-05-15T13:29:48Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
