Onebox in preview keeps forgetting oneboxes

  • Add a onebox eg: https://discuss.samsaffron.com

  • Preview shows onebox

  • Keep typing, preview hides onebox (yet onebox class is still there)

:frowning: :frowning:

Assigning to @eviltrout for next week.

5 Likes

This is not as serious as it seems. jQuery will sometimes return href values with a trailing slash for root domains even if the href attribute didnโ€™t have that. I assume oneboxing root domains is rare and thatโ€™s why we havenโ€™t seen this before.

This commit fixes it:

https://github.com/discourse/discourse/commit/bd70656b90ddf588efac5b3a38360943fafac6dd

4 Likes