Reproduce:

- add feed to aggregator
- go to aggregator/sources/1

Next to the URL: label you will see a link to your own site. The reason is that aggregator hasn't downloaded the feed yet and the feed link (link to the feed's web site) is not available yet.

Patch follows asap.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alex_b’s picture

FileSize
1.97 KB
alex_b’s picture

Issue tags: +Quick fix
alex_b’s picture

Assigned: alex_b » Unassigned
alex_b’s picture

Status: Active » Needs review
alex_b’s picture

Status: Needs review » Reviewed & tested by the community

Passed test bot, simple fix, setting it to RTBC.

Dries’s picture

Status: Reviewed & tested by the community » Needs work

If the feed hasn't been downloaded yet, shouldn't we skip the description, image, and friends too? The code is somewhat inconsistent -- for the 'checked' check we use a regular if-statement. It feels like this can be cleaned up further, maybe even with a test update.

alex_b’s picture

Status: Needs work » Needs review
FileSize
2.73 KB

#6 - that's right... this patch hides any information retrieved from feed if the feed hasn't been updated yet - much cleaner.

alex_b’s picture

Status: Needs review » Postponed

Let's hold on this one for the moment. #293318: Convert Aggregator feeds into entities may completely change template_preprocess_aggregator_feed_source() anyway.

Jody Lynn’s picture

Version: 7.x-dev » 8.x-dev
jibran’s picture

Status: Postponed » Active

as per #8

Aron Novak’s picture

rootwork’s picture

Issue summary: View changes
Status: Active » Needs review
Issue tags: +SprintWeekend2014
FileSize
0 bytes

Took a stab at updating this. First I confirmed that it is still true in Drupal 8 -- if the feed hasn't been retrieved yet, it will display your own site's address as the feed address.

I made the corresponding changes to the aggregator page and the new Twig template, but it's not functioning yet -- I suspect because I'm not yet familiar with how variable checking in Twig works. If you someone else wants to try to get it to work, that's where I'd start.

Setting to needs review so the testbot will run, but it needs more work.

rootwork’s picture

FileSize
3.54 KB

Oops. Here's the real patch.

The last submitted patch, 12: drupal-aggregator-fix-link-397962-12.patch, failed testing.

rootwork’s picture

Status: Needs review » Needs work

The last submitted patch, 13: drupal-aggregator-fix-link-397962-13.patch, failed testing.

rootwork’s picture

Status: Needs work » Needs review
znerol’s picture

Status: Needs review » Patch (to be ported)

This was fixed by #2261425: Streamline aggregator's entities rendering with rest of core for Drupal 8.0.x. Still an issue in 7.x, though.

rootwork’s picture

Version: 8.0.x-dev » 7.x-dev
smussbach’s picture

Status: Patch (to be ported) » Needs review
FileSize
3.63 KB

Here is the patch ported for D7