# Full domain path in WYSIWYG?

**URL:** <https://discourse.getcockpit.com/t/full-domain-path-in-wysiwyg/687>\
**Category:** Support\
**Created:** [March 28, 2019, 8:38pm UTC](https://discourse.getcockpit.com/t/full-domain-path-in-wysiwyg/687 "2019-03-28T20:38:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![edenprojectde](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/edenprojectde/32/422_2.png) [@edenprojectde](https://discourse.getcockpit.com/u/edenprojectde)\
**Post date:** [March 28, 2019, 8:38pm UTC](https://discourse.getcockpit.com/t/full-domain-path-in-wysiwyg/687/1 "2019-03-28T20:38:57Z")

</div>

First time here guys, please be gentle :'D

I want to use the WYSIWYG field to make blogs, and Singelton entries for my Website.  
When i try to call the API with the d flag, it won’t give me full paths to the images  
I also set up the domain in the yaml file like this:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/1X/e0028196538be784433d434020a2eee39d0a9b4e.png)

I get this as a link in the WYSIWYG field:  
\<img src="/cockpit/storage/uploads/2019/03/28/5c9d1917a97d413885861972\_da77195698\_b.jpg" alt="" /\>  
but it should be:  
\<img src=“[http://127.0.0.1/cockpit/storage/uploads/2019/03/28/5c9d1917a97d413885861972\_da77195698\_b.jpg](http://127.0.0.1/cockpit/storage/uploads/2019/03/28/5c9d1917a97d413885861972_da77195698_b.jpg)” alt="" /\>

I’m calling this URL:  
[http://127.0.0.1/cockpit/api/singletons/get/Mainpage?token=anothertokenbitesthedust&d=true](http://127.0.0.1/cockpit/api/singletons/get/Mainpage?token=anothertokenbitesthedust&d=true)

---

<div class="post-metadata">

**Author:** ![edenprojectde](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/edenprojectde/32/422_2.png) [@edenprojectde](https://discourse.getcockpit.com/u/edenprojectde)\
**Post date:** [March 29, 2019, 5:47pm UTC](https://discourse.getcockpit.com/t/full-domain-path-in-wysiwyg/687/2 "2019-03-29T17:47:45Z")

</div>

I saw this  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/1X/710d89772370482c1e3bb137873d97fe3394bacb.png)  
and saw that tinyMCE has options for paths:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/1X/0f357063b09f2d4bd3f588ae4ea02e28d6e5e2f0.png)

I added these options:  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/1X/d814056bca4b4d6eb6c6acfb3e65634474c0b467.png)

But the Editor is still adding relative URLs, i removed and readdded images, but to no avail.

---

<div class="post-metadata">

**Author:** ![Blistok](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/blistok/32/212_2.png) [@Blistok](https://discourse.getcockpit.com/u/Blistok)\
**Post date:** [March 29, 2019, 8:08pm UTC](https://discourse.getcockpit.com/t/full-domain-path-in-wysiwyg/687/3 "2019-03-29T20:08:11Z")

</div>

Welcome @edenprojectde!  
Would this help:

> **[TinyMCE | Get Support & FAQ](https://www.tiny.cloud/docs/general-configuration-guide/get-support/#domainabsoluteurls)**
>
> Community and pro-grade support options.

I did a quick test with config like this:

```auto
{
  "editor": {
    "relative_urls": false,
    "remove_script_host": false,
    "document_base_url": "http://www.site.com/path1/"
  }
}

```

and it worked as expected when used with relative urls (i.e. setting `myImage.png` ended up as `http://www.site.com/path1/myImage.png`).

---

<div class="post-metadata">

**Author:** ![edenprojectde](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/edenprojectde/32/422_2.png) [@edenprojectde](https://discourse.getcockpit.com/u/edenprojectde)\
**Post date:** [March 29, 2019, 8:36pm UTC](https://discourse.getcockpit.com/t/full-domain-path-in-wysiwyg/687/4 "2019-03-29T20:36:26Z")

</div>

It works like a charm. Beautiful. 😍
