Commit 35598263 authored by alexpott's avatar alexpott

Issue #2251861 by olli, jibran: Add the feed icon back to taxonomy/term/% pages

parent 53fe2049
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
module:
- node
- taxonomy
- user
id: taxonomy_term
label: 'Taxonomy term'
module: taxonomy
......@@ -236,6 +239,15 @@ display:
empty: { }
relationships: { }
fields: { }
display_extenders: { }
link_url: ''
link_display: page_1
cache_metadata:
contexts:
- 'languages:language_interface'
- url
- 'user.node_grants:view'
cacheable: false
feed_1:
id: feed_1
display_title: Feed
......@@ -252,7 +264,7 @@ display:
offset: 0
path: taxonomy/term/%/feed
displays:
page: page
page_1: page_1
default: '0'
style:
type: rss
......@@ -265,6 +277,13 @@ display:
options:
relationship: none
view_mode: default
display_extenders: { }
cache_metadata:
contexts:
- 'languages:language_interface'
- url
- 'user.node_grants:view'
cacheable: false
page_1:
id: page_1
display_title: Page
......@@ -275,3 +294,10 @@ display:
type: views_query
options: { }
path: taxonomy/term/%
display_extenders: { }
cache_metadata:
contexts:
- 'languages:language_interface'
- url
- 'user.node_grants:view'
cacheable: false
......@@ -104,6 +104,10 @@ function testTaxonomyRss() {
);
$this->assertRaw($test_element, 'Term is displayed when viewing the rss feed.');
// Test that the feed icon exists for the term.
$this->drupalGet("taxonomy/term/{$term1->id()}");
$this->assertLinkByHref("taxonomy/term/{$term1->id()}/feed");
// Test that the feed page exists for the term.
$this->drupalGet("taxonomy/term/{$term1->id()}/feed");
$this->assertRaw('<rss version="2.0"', "Feed page is RSS.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment