joomla / joomla-cms

Home of the Joomla! Content Management System
https://www.joomla.org
GNU General Public License v2.0
4.69k stars 3.63k forks source link

TinyMCE URLs #36108

Open thomaslanger opened 2 years ago

thomaslanger commented 2 years ago

Steps to reproduce the issue

Default Editor is "Editor - TinyMCE". In a article or Custom Module add Text with a link "/" or "/example" Switch off editor without saving. Href attribut has wrong content. Change href attribut to "/", switch on and off editor an href attribut is wrong again

The HREF attribute is not changed by Joomla when saving.

Same with JCE works as expected.

Expected result

Link tags: <a href="/">Text</a> or <a href="/example">Text</a>

Actual result

Link tag: <a href="http://your.domain">Text</a> <a href="example">Text</a>

System information (as much as possible)

Joomla 3.10 Firefox macos

Additional comments

brianteeman commented 2 years ago

can a maintainer please edit the post above so we can see the link code

brianteeman commented 2 years ago

Confirmed. At a very quick guess it is because the option to have absolute or relative (default) urls in the editor plugin is not working

brianteeman commented 1 year ago

This report was for j3 with tinymce 4 Testing again with j4 and tinymce 5 I cannot replicate the problem

HLeithner commented 1 year ago

Tested with j4 and can confirm the behavior