joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

Feed URL has double slashes

Open RickR2H opened this issue 4 weeks ago • 1 comments

With the Blog Sample Data installed. click on the My Blog RSS feed. When you look in the source in the top part of the file, there is an atom tag. The link of this tag has double slashes in the URL. Also when the site is in a sub folder, this folder name get added two times.

Example 1: <atom:link rel="self" type="application/rss+xml" href="https://localhost//index.php?format=feed&type=rss"/> Should be: <atom:link rel="self" type="application/rss+xml" href="https://localhost/index.php?format=feed&type=rss"/>

Example 2 <atom:link rel="self" type="application/rss+xml" href="https://localhost/joomladevelopment//joomladevelopment/index.php?format=feed&type=rss"/> Should be: <atom:link rel="self" type="application/rss+xml" href="https://localhost/joomladevelopment/index.php?format=feed&type=rss"/>

The problem is probably the plugins\system\sef\src\Extension\Sef.php file. On line: 226 the feed URL get replaced. Disable this part fixes the problem. This is not the solution, but a direction to get it fixed.

In PR #45592 the double slashes in the image URL's are fixed. Discussion has been started there on this bug.

RickR2H avatar Dec 10 '25 11:12 RickR2H

See also issue #46554 .

richard67 avatar Dec 10 '25 19:12 richard67