I am using the Umbraco WYSIWYG datatype, and I noticed when using the HTML window to input HTML, that an A tag
<a href="http://www.someurl.com">link</a>
Will end up being:
<a href="/http.....>link</a>
This also happens if the link is just http://www.something.com and not http://. It will also start with a (/).
As a bonus side affect, if it does have http:// in the link, the forward slash will change this link from
http://
to
/http:/ (single forward slash like its a path)
The WYSIWYG is the TinyMCE WYSIWYG. Why does it do this, and what can I do to change it?
You need to change the TinyMCE config to change this behavior. In the file
config/tinyMceConfig.config, add this to the<customConfig>section at the end of the file:Read about relative_urls at tinymce site.