Item links inside RSS FEED page are in some cases Broken ?

More
9 years 5 months ago - 9 years 5 months ago #54213 by iamrobert
My URL seems to repeat in the rss form (http://localhosthttp://localhost):
Code:
<title>復發性疝氣</title> <link rel="alternate" type="text/html" href="http://localhosthttp://localhost/htw3/index.php/hernia/types-of-hernia/recurrent-hernia"/> <published>2012-12-21T18:56:02+08:00</published> <updated>2012-12-21T18:56:02+08:00</updated> <id>http://localhosthttp://localhost/htw3/index.php/hernia/types-of-hernia/recurrent-hernia</id>

Looking at this line in:
components/com_flexicontent/views/category/view.feed.php
Code:
$link = $domain . JRoute::_(FlexicontentHelperRoute::getItemRoute($row->slug, $category->slug, 0, $row));

and commenting out the $domain variable seems to make a correct URL:
Code:
$link = /*$domain .*/ JRoute::_(FlexicontentHelperRoute::getItemRoute($row->slug, $category->slug, 0, $row));

Need to test on a live site
Last edit: 9 years 5 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago - 9 years 5 months ago #54221 by ggppdk
Hello

that 'domain' part

was added to make sure that URL is not relative, because it is needed by some feeds clients ?

but it seems JRoute,
is sometimes making and sometimes it is not making the Feeds URL absolute ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 9 years 5 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago - 9 years 5 months ago #54222 by ggppdk
Hello

ok, this 'domain' prefix code is not good for J3.4.x, will remove it

but will keep it for the image links, do you have problem with the image links in the RSS view ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 9 years 5 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #54228 by iamrobert
Hi ggppdk,

No - I don't have a problem with the image links in the RSS view - and I haven't edited that part of the code.

Cheers,

Robert
The following user(s) said Thank You: ggppdk

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago - 9 years 5 months ago #54294 by ggppdk
Hello

i have tested this change, and commit it


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 9 years 5 months ago by ggppdk.
The following user(s) said Thank You: iamrobert

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.292 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline