# 转到 /finish-installation 会产生意外行为

**URL:** <https://meta.discourse.org/t/going-to-finish-installation-creates-unexpected-behavior/239976>\
**Category:** Bug\
**Created:** [2022年九月24日 22:41 UTC](https://meta.discourse.org/t/going-to-finish-installation-creates-unexpected-behavior/239976 "2022-09-24T22:41:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**Post date:** [2022年九月24日 22:41 UTC](https://meta.discourse.org/t/going-to-finish-installation-creates-unexpected-behavior/239976/1 "2022-09-24T22:41:09Z")

</div>

重现此问题，请登录 Discourse 论坛（任意一个）并转到 `/finish-installation`  
网站开始出现异常。

总而言之，几个模态框和弹出框将为空或根本不起作用。我在这里展示了 Discourse Try 和我的生产站点，我正在准备一个测试站点。

---

<div class="post-metadata">

**Author:** ![Alexander](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexander/32/497634_2.png) [@Alexander](https://meta.discourse.org/u/Alexander)\
**Post date:** [2022年九月26日 17:34 UTC](https://meta.discourse.org/t/going-to-finish-installation-creates-unexpected-behavior/239976/2 "2022-09-26T17:34:05Z")

</div>

我做了一些研究，我的理论是，当你访问那个路由时，并且站点已经配置好，它会渲染 application.html.erb（即 Ember 应用），但是，在 discourse-assets-json 中只预加载了匿名数据（即 currentUser 和其他重要数据没有发送）。

有什么方法可以让 Discourse 为已配置的站点显示“静态”404 吗？ 🤔

> <https://github.com/discourse/discourse/blob/fa8cd629f1ad4c64308e3e5c1d93f3ae78b2815a/app/controllers/finish_installation_controller.rb>
