# Embed creating duplicate http / https topics

**URL:** <https://meta.discourse.org/t/embed-creating-duplicate-http-https-topics/62113>\
**Category:** Product Support\
**Created:** [May 4, 2017, 4:00pm UTC](https://meta.discourse.org/t/embed-creating-duplicate-http-https-topics/62113 "2017-05-04T16:00:37Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![sckott](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sckott/32/115359_2.png) [@sckott](https://meta.discourse.org/u/sckott)\
**Post date:** [May 4, 2017, 4:28pm UTC](https://meta.discourse.org/t/embed-creating-duplicate-http-https-topics/62113/3 "2017-05-04T16:28:18Z")

</div>

Makes sense, yep, [ropensci.org](http://ropensci.org) still allows both `http` and `https` without redirecting `http` to `https`

Is there a way to in the meantime to make a fix in the embed code? Like only create a topic for `https` version of the URL? I have `https` hard-coded below, but I guess that doesn’t do it?

this is the code we have now:

```html
<script type="text/javascript">
  DiscourseEmbed = { discourseUrl: 'https://discuss.ropensci.org/',
                     discourseEmbedUrl: 'https://ropensci.org{{ page.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);
  })();
</script>

```

---

_[View the full topic](https://meta.discourse.org/t/embed-creating-duplicate-http-https-topics/62113)._
