# Preview not working when using object store - wrong markdown-it url

**URL:** <https://meta.discourse.org/t/preview-not-working-when-using-object-store-wrong-markdown-it-url/215549>\
**Category:** Self-hosting\
**Created:** [January 21, 2022, 10:02am UTC](https://meta.discourse.org/t/preview-not-working-when-using-object-store-wrong-markdown-it-url/215549 "2022-01-21T10:02:55Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![unteem](https://avatars.discourse-cdn.com/v4/letter/u/d07c76/32.png) [@unteem](https://meta.discourse.org/u/unteem)\
**Post date:** [January 28, 2022, 11:36am UTC](https://meta.discourse.org/t/preview-not-working-when-using-object-store-wrong-markdown-it-url/215549/5 "2022-01-28T11:36:32Z")

</div>

Ok back on it. Looks like you are right.

So I tried to set `DISCOURSE_S3_CDN_URL` as a bucket subpath `https://hot-objects.liiib.re/forum-beta-liiib-re` and it is now working.

Do you think it would be reasonable to allow S3 CDN as a subdomain of S3 endpoint ?

In my case, which could be similar to other self-hosted setups, I’m not using an external CDN (nginx on top of minio can be considered as the CDN) so I don’t need to set it on another domain.  
I actually setup the subdomain bucket because, I think, its required for discourse to manage uploads

Anyways it solved it and its working for me. Thanks for the help !

---

_[View the full topic](https://meta.discourse.org/t/preview-not-working-when-using-object-store-wrong-markdown-it-url/215549)._
