No Code Attached Yet bug
avatar Globulopolis
Globulopolis
2 Feb 2023

Steps to reproduce the issue

Open any feed on site(e.g. featured)

Expected result

Correct url in href

<atom:link rel="self" type="application/rss+xml"
href="http://localhost/j42/index.php?option=com_content&amp;view=featured&amp;Itemid=101&amp;format=feed&amp;type=rss"/>

Actual result

Double j42/j42

<atom:link rel="self" type="application/rss+xml"
href="http://localhost/j42/j42/index.php?option=com_content&amp;view=featured&amp;Itemid=101&amp;format=feed&amp;type=rss"/>

System information (as much as possible)

Apache 2.4, PHP 7.2.
No cache, no gzip.

Additional comments

The problem is coming when Joomla output the feed. If I do echo $url . $syndicationURL; right after https://github.com/joomla/joomla-cms/blob/4.2-dev/libraries/src/Document/Renderer/Feed/RssRenderer.php#L93 I see the correct url.

Same problem with the atom feed.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar Globulopolis Globulopolis - open - 2 Feb 2023
avatar joomla-cms-bot joomla-cms-bot - change - 2 Feb 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Feb 2023
avatar brianteeman
brianteeman - comment - 3 Feb 2023

bug Confirmed

avatar Quy Quy - change - 3 Feb 2023
Labels Added: bug
avatar Quy Quy - labeled - 3 Feb 2023
avatar Hackwar
Hackwar - comment - 16 Feb 2023

I only have that issue when SEF is switched off.

avatar brianteeman
brianteeman - comment - 16 Feb 2023

@Hackwar iirc the key here is that the site has to be installed in a subdirectory

avatar Hackwar
Hackwar - comment - 16 Feb 2023

I have it in a subdirectory and it is working fine with SEF enabled. It indeed fails when SEF is disabled.

avatar brianteeman
brianteeman - comment - 16 Feb 2023

retested and I confirm @Hackwar findings

I would say its still a bug although very low priority

avatar Hackwar Hackwar - change - 25 Aug 2023
Labels Added: PBF
avatar Hackwar Hackwar - labeled - 25 Aug 2023
avatar brianteeman brianteeman - change - 1 Sep 2023
Labels Removed: PBF
avatar brianteeman brianteeman - unlabeled - 1 Sep 2023
avatar EJBJane
EJBJane - comment - 17 Nov 2023

Again, as I mentioned in another issue about the RSS this is a big problem for SEO. You can see errors in the RSS in my feed here. As Globulopolis said he got double directories /j42/j42/ - I get this also but WITH SEF on, links in articles which were added with the link manager and in images urls. As I cant turn the RSS feed off I get lot's of 404's because of the large amount of traffic I have.
See feed with full article here: https://www.dolcevia.com/en/articles?format=feed&type=rss


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39775.

avatar Hackwar Hackwar - change - 17 Nov 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-02-13 11:06:56
Closed_By Hackwar
avatar Hackwar
Hackwar - comment - 13 Feb 2024

I created a PR with #42802 Please test this, so that we can fix it in 5.0 and onwards. Closing this since we have a PR.

Add a Comment

Login with GitHub to post a comment