Problem/Motivation
Follow up from #1857256: Convert the taxonomy listing and feed at /taxonomy/term/%term to Views
Steps to reproduce:
1. Attach feed display to a page with arguments:
- edit taxonomy term view feed display at /admin/structure/views/view/taxonomy_term/edit/feed_1
- below "Feed settings" is a setting "Attach to: None"
- click "None", check "Page", click "Apply" and save the view.
2. Add an article with a tag "Tag1"
3. Go to /taxonomy/term/1
Expected: At the bottom of the page is a feed icon link to /taxonomy/term/1/feed with title "Subscribe to Tag1".
Actual: At the bottom of the page is a feed icon link to /taxonomy/term/%2A/feed with title "Subscribe to ".
Proposed resolution
In Feed::attachTo() copy the original arguments the same way as in Attachment::attachTo().
Remaining tasks
Commit it.
User interface changes
Feed link title will be updated
API changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | 2251121-13.patch | 8.21 KB | olli |
Comments
Comment #1
dawehnerThis is one approach to solve it.
Comment #2
xjmFollowup: #2251861: Add the feed icon back to taxonomy/term/% pages
Comment #3
xjmComment #4
olli commentedReroll, no tests yet. One question:
Is this needed? If NULL is passed it uses $this->args anyway.
Comment #5
dawehnerThis is why we need test coverage :)
Comment #6
olli commentedI found that the attachment display already copies arguments and that could also work for feed displays. Here's a test.
Comment #8
mgiffordWhat's the fastest way to manually verify this?
Comment #9
olli commentedReroll.
Re #8:
0. edit taxonomy term view feed display at /admin/structure/views/view/taxonomy_term/edit/feed_1
- below "Feed settings" is a setting "Attach to: None"
- click "None", check "Page", click Apply and Save.
1. add an article with a tag "Tag1"
2. go to /taxonomy/term/1
At the bottom of the page is a feed icon link to /taxonomy/term/all/feed with title "Subscribe to ".
3. apply this patch and reload /taxonomy/term/1
At the bottom of the page is a feed icon link to /taxonomy/term/1/feed with title "Subscribe to Tag1".
Comment #11
olli commented#2375107: Unable to allow multiple roles access views page
Comment #12
mgiffordWithout the patch I see core/misc/feed.png
With the patch I don't see the icon or the link to taxonomy/term/all/feed
Thanks for the details in #9 about how to test this.
Comment #13
olli commentedRerolled and recreated the test view.
Copied the steps from #9 to issue summary. Without this patch the link is now to taxonomy/term/*/feed which is 404 Not found.
@mgifford, Are you sure there is no link to taxonomy/term/1/feed on the term page taxonomy/term/1 with the patch after changing the "Attach to:" setting? If not, could you export and upload the view?
Comment #14
jibranWorks as described in #9

Comment #15
alexpottThis issue addresses a major bug and is allowed per https://www.drupal.org/core/beta-changes. Committed f213f85 and pushed to 8.0.x. Thanks!