# תגי \`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,‏ 11:54pm 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:** 7

<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:** [21 באפריל,‏ 2023,‏ 6:54pm UTC](https://meta.discourse.org/t/bbcode-url-tags-break-if-wrapped-text-ends-in-url-with-component-after-host/262448/7 "2023-04-21T18:54:48Z")

</div>

I’m not super familiar with this code, but I took a quick look. I think it has something to do with the auto-linkify system. By the time the parser goes looking for the close url tag `[/url]`, it has already been incorporated into an autolink.

e.g. note that the autolink here is to `http://example.com/foo%5B/url%5D`

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

That’s why adding the space helps - it prevents the autolink from including the `[/url]`

🤔

---

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