Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Umbraco WYSIWYG place forward slash in front of a tag link?

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?

like image 744
pghtech Avatar asked Aug 28 '12 15:08

pghtech


People also ask

What are forward slashes used for?

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.

What is the difference between a backslash and a slash?

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.

How do you use a slash between his and her?

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)

What is a forward slash called in Unicode?

Forward slash is called a solidus in Unicode. Forward slash was once used to mark periods “.” and commas “,”.


1 Answers

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.

like image 182
Kuf Avatar answered Oct 08 '22 09:10

Kuf