# תצוגה מקדימה לא עובדת בעת שימוש בחנות אובייקטים - כתובת url שגויה של markdown-it

**URL:** <https://meta.discourse.org/t/preview-not-working-when-using-object-store-wrong-markdown-it-url/215549>\
**Category:** Self-hosting\
**Created:** [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:** 1

<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:** [21 בינואר,‏ 2022,‏ 10:02am UTC](https://meta.discourse.org/t/preview-not-working-when-using-object-store-wrong-markdown-it-url/215549/1 "2022-01-21T10:02:55Z")

</div>

When configuring Object Store, preview for topics/posts are not working.

Discourse is configured with an Object Store  
Install is on docker, following the doc.  
Discourse version: 2.8.0.beta11

Here are my env variables for S3 configs:

```plaintext
  DISCOURSE_CDN_URL: https://discourse.liiib.re
  DISCOURSE_USE_S3: true
  DISCOURSE_S3_REGION: default
  DISCOURSE_S3_ENDPOINT: https://hot-objects.liiib.re 
  DISCOURSE_S3_ACCESS_KEY_ID: ACCESS_KEY_ID
  DISCOURSE_S3_SECRET_ACCESS_KEY: SUPER_SECRET_KEY
  DISCOURSE_S3_CDN_URL: https://forum-beta-liiib-re.hot-objects.liiib.re
  DISCOURSE_S3_BUCKET: forum-beta-liiib-re
  DISCOURSE_S3_INSTALL_CORS_RULE: false

```

When I check the browser inspector, URL for `markdown-it-bundle` is pointing to `https:https://forum-beta-liiib-re.hot-objects.liiib.re/assets/markdown-it-bundle-9d939740bdeca330e5984bed41d12eab63736c1f720ab68e0c2a2d672c01adc2.br.js`

It should not prefix the `DISCOURSE_S3_CDN_URL` with `https:` as its already there.

In the console I have the following error:

```plaintext
Loading failed for the <script> with source “https://discourse.liiib.re/https://forum-beta-liiib-re.hot-objects.liiib.re/assets/markdown-it-bundle-9d939740bdeca330e5984bed41d12eab63736c1f720ab68e0c2a2d672c01adc2.br.js”.

```

I guess my browser is redirecting the `https:https://...` URL to this one.

I have been trying to find, unsuccessfully, where this URL is set.

If someone can point me to the right direction 🙂

Thanks for your help

---

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