Vulnerability in EPiServer.Forms

Try our conversational search powered by Generative AI!

TinyMCE modifies links (renames) and generates redirects.


Hello everyone.

My problem is related to TinyMCE When I add links they modify and replace them

when I add the link_/woman/shirt

it transforms it and it appears on the web_
(when clicking on the link it redirects me to: /woman/shirt)

How can I solve this so that in the html of the resulting web it is

it happens with both epi-link and link

Episerver.cms 11.20.14
Episerver.cms.TinyMCE  2.13.14

in the editor settings I have:

.AddPlugin(@"epi-link epi-image-editor autolink image link media code lists
             textcolor wordcount imagetools colorpicker textpattern template")
.Toolbar("cut copy paste | epi-link | image epi-image-editor | bold italic underline strikethrough forecolor backcolor | link ",
         "styleselect | fontsizeselect | fontselect | custom_styleselect",
         "alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | code | removeformat | template")

Can someone help me with this issue?

Apr 12, 2023 8:52

How are you rendering the tinymce property in your view? copy/paste the code.

Apr 12, 2023 9:33

There's an example in the dev docs for adding a "site relative link" option in TinyMCE:

Note the comment at the bottom of that page about setting the convert_urls setting to false, to prevent TinyMCE from converting the link. Maybe just that change will get you what you need?

Apr 12, 2023 23:01
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.