Edit article
Add link per link icon with target like /#my-startpage-anchor
<p>Some link to an <a href="/#my-startpage-anchor">anchor</a></p>
<p>Some link to an <a href="#my-startpage-anchor">anchor</a></p>
⇨ Leading slash removed, link will not work on any sub-page/url
Joomla! 5.1.0
PHP 8.3.4 as fpm-fcgi on nginx
Trailing slash also gets removed when adding link manually in html source code w/ tyinmce editor turned off.
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
@richard67 different issue
Is this something that used to work? There have been quite a few changes in 5.1 which may have created this https://github.com/joomla/joomla-cms/pulls?q=is%3Apr+trailing+slash+is%3Amerged
Just checked, same problem in Joomla 3.10.12
@o-joomla-issues I cannot replicate your problem with tinyMCE. j 5.1.0,
I write your link in html-mode, save and the result is
<p>Some link to an <a href="../#my-startpage-anchor">anchor</a></p>
Where does the .. come from? .. is different from / and might not lead to the start page.
I used tinyMCE entered your code into an article and saved. This was the result after saving the article therefore comes from tinyMCE.
That's odd. With all Joomla versions I manage, it never adds dots. Maybe we have different settings for URL rewrite.
But either - removing leading slash or adding dots - is an issue as it breaks links.
TincMCE should not change links in any way.
Labels |
Added:
Information Required
|
Closing due to no response.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-09-19 19:57:37 |
Closed_By | ⇒ | Quy |
URLs: Absolute will add domain name to URL which is a no-go and does not solve the issue.
Status | Closed | ⇒ | New |
Closed_Date | 2024-09-19 19:57:37 | ⇒ | |
Closed_By | Quy | ⇒ |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-11-07 05:05:42 |
Closed_By | ⇒ | Quy |
Closing as this is the expected behavior with TinyMCE. Please use CodeMirror or Editor None to prevent the forward slash being removed.
Same as #43324 ? Or only similar?