# 与Discourse和Google Translate的奇怪互动

**URL:** <https://meta.discourse.org/t/odd-interaction-with-discourse-and-google-translate/315160>\
**Category:** Bug\
**Created:** [2024年七月5日 15:48 UTC](https://meta.discourse.org/t/odd-interaction-with-discourse-and-google-translate/315160 "2024-07-05T15:48:26Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2024年九月16日 16:15 UTC](https://meta.discourse.org/t/odd-interaction-with-discourse-and-google-translate/315160/4 "2024-09-16T16:15:30Z")

</div>

看起来这会影响所有 Ember 应用。例如，就连 Ember 自家的 [文档应用](https://guides.emberjs.com/release/services/) 也会受影响。

 ![SCR-20240916-paie](https://global.discourse-cdn.com/meta/original/4X/c/2/6/c26426ef57218f1d2232222bc96a4696554ee662.png)

看起来 Google 正在代理该网站，注入一些 JavaScript，并注入一个 `<base>` 标签。我们或许可以检测到 Google 的这些 hack 并绕过 404 问题……但我非常怀疑像 Discourse 这样复杂的 JS 应用能否很好地通过 Google 的代理运行。

一种解决方法是使用浏览器内置的翻译功能（原生或通过扩展程序）。这些功能没有相同的代理/注入行为。

---

_[View the full topic](https://meta.discourse.org/t/odd-interaction-with-discourse-and-google-translate/315160)._
