# \[solved\] Error Embedding

**URL:** <https://meta.discourse.org/t/solved-error-embedding/57276>\
**Category:** Support\
**Created:** [February 12, 2017, 5:23pm UTC](https://meta.discourse.org/t/solved-error-embedding/57276 "2017-02-12T17:23:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Michael321](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@Michael321](https://meta.discourse.org/u/Michael321)\
**Post date:** [February 12, 2017, 5:42pm UTC](https://meta.discourse.org/t/solved-error-embedding/57276/2 "2017-02-12T17:42:24Z")

</div>

Bam! Fixed it. Make sure the discourseEmbedUrl is a full URL, not a relative path. E.g.:

```
              var url="https://dev.bigsmall.io/articles/action-brands-are-important-urgent-credible/"
              DiscourseEmbed = { discourseUrl: 'https://community.bigsmall.io/',
                                 discourseEmbedUrl: url };
              
              (function() {
                var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
                d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
                (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
              })();

```

---

_[View the full topic](https://meta.discourse.org/t/solved-error-embedding/57276)._
