# discourseEmbedUrl and Joomla

**URL:** https://meta.discourse.org/t/discourseembedurl-and-joomla/92039
**Category:** Support
**Created:** [July 11, 2018, 1:10am UTC](https://meta.discourse.org/t/discourseembedurl-and-joomla/92039 "2018-07-11T01:10:18Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [July 11, 2018, 7:08am UTC](https://meta.discourse.org/t/discourseembedurl-and-joomla/92039/2 "2018-07-11T07:08:48Z")

</div>

You can use the below code. It will remove the query string from URL.

`discourseEmbedUrl: window.location.href.split(/[?#]/)[0] };`

---

_[View the full topic](https://meta.discourse.org/t/discourseembedurl-and-joomla/92039)._
