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 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?
Besides file path, forward slashes also consist of website addresses. For example, “https://www.minitool.com/news/backslash-vs-forward-slash.html” web address can be read as “minitool dot com slash news slash backslash vs forward slash dot html”. Forward slash is also used as dividing in many programming languages, such as Python.
Back slash is the mirror image of the common slash “/” (forward slash). It is encoded at U+005C \ REVERSE SOLIDUS (92 decimal) in Unicode and ASCII. Forward slash “/”, usually known as slash, is an oblique slanting line punctuation mark. Sometimes, in order to distinguish it from the backslash, we call it forward slash.
Using a slash between ‘his’ and ‘her’ here is the same as saying ‘his or her’. Generally, though, you would not use a forward slash like this in formal writing, where writing ‘or’ would be standard. The forward slash has other uses, too, including the following: To mean ‘per’ in a measurement (e.g. 10 m/s = ten metres per second)
Forward slash is called a solidus in Unicode. Forward slash was once used to mark periods “.” and commas “,”.
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:
<config key="relative_urls">true</config>
Read about relative_urls at tinymce site.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With