# Тэги \`url\` BBCode ломаются, если заключённый текст заканчивается URL с компонентом после хоста

**URL:** <https://meta.discourse.org/t/bbcode-url-tags-break-if-wrapped-text-ends-in-url-with-component-after-host/262448>\
**Category:** Bug\
**Created:** [20.Апрель.2023 23:54:47 UTC](https://meta.discourse.org/t/bbcode-url-tags-break-if-wrapped-text-ends-in-url-with-component-after-host/262448 "2023-04-20T23:54:47Z")\
**Posts on this page:** 1\
**Showing post:** 13

<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:** [25.Апрель.2023 20:29:29 UTC](https://meta.discourse.org/t/bbcode-url-tags-break-if-wrapped-text-ends-in-url-with-component-after-host/262448/13 "2023-04-25T20:29:29Z")

</div>

Всё исправлено 🎊

```plaintext
[url]http://example.com/foo[/url]
[url]http://example.com/foo/[/url]
[url=http://example.com/]http://example.com/[/url]
[url=http://example.com/]foo http://example.com/[/url]

```

[http://example.com/foo](http://example.com/foo)  
[http://example.com/foo/](http://example.com/foo/)  
[http://example.com/](http://example.com/)  
[foo http://example.com/](http://example.com/)

@per1234, вы уже должны быть развернуты с исправлением. Дайте знать, если всё выглядит хорошо!

Спасибо за сообщение!

---

_[View the full topic](https://meta.discourse.org/t/bbcode-url-tags-break-if-wrapped-text-ends-in-url-with-component-after-host/262448)._
