# Странное взаимодействие между Discourse и Google Translate

**URL:** <https://meta.discourse.org/t/odd-interaction-with-discourse-and-google-translate/315160>\
**Category:** Bug\
**Created:** [05.Июль.2024 15:48:26 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:** 1

<div class="post-metadata">

**Author:** ![mentalstring](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mentalstring/32/168934_2.png) [@mentalstring](https://meta.discourse.org/u/mentalstring)\
**Post date:** [05.Июль.2024 15:48:26 UTC](https://meta.discourse.org/t/odd-interaction-with-discourse-and-google-translate/315160/1 "2024-07-05T15:48:26Z")

</div>

Эту проблему поднял один из постоянных участников, использующего расширение Firefox для перевода страниц, но, похоже, она не зависит от него и воспроизводится на любой странице в meta.

Шаги:

1. Перейдите на [https://translate.google.com/](https://translate.google.com/)
2. Вставьте URL, например `https://meta.discourse.org/t/using-discourse-index/308031`
3. Нажмите кнопку перевода

Скорее всего, вы попадёте на страницу 404 Discourse с URL вроде этого:

> [https://meta-discourse-org.translate.goog/t/using-discourse-index/308031/t/using-discourse-index/308031?\_x\_tr\_sl=en&\_x\_tr\_tl=pt-PT&\_x\_tr\_hl=en&\_x\_tr\_pto=wapp&\_x\_tr\_hist=true](https://meta-discourse-org.translate.goog/t/using-discourse-index/308031/t/using-discourse-index/308031?_x_tr_sl=en&_x_tr_tl=pt-PT&_x_tr_hl=en&_x_tr_pto=wapp&_x_tr_hist=true)

Обратите внимание, что в URL путь `/t/using-discourse-index/308031` дублируется. Удаление дублирующегося фрагмента позволяет переводу работать [как ожидалось](https://meta-discourse-org.translate.goog/t/using-discourse-index/308031/?_x_tr_sl=en&_x_tr_tl=pt-PT&_x_tr_hl=en&_x_tr_pto=wapp&_x_tr_hist=true).

Обычно это была бы проблема Google Translate, но она, похоже, возникает только с Discourse (я пробовал несколько других сайтов) и только после обновления до версии 3.2.

---

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