Problem/Motivation

Our site uses media as well as node so we need the ability to have term based off of a media entity.

Steps to reproduce

  • Have a taxonomy field on a media entity.
  • Have a context or block based off of a taxonomy term. On the /media/xxxx page it does not show the context/block.

Proposed resolution

Simple code fix on Term.php to add 'media' => 'media' as a route match.

Remaining tasks

I'm going to submit a patch for it.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Comments

niles38 created an issue. See original summary.

niles38’s picture

StatusFileSize
new583 bytes

This patch works for us... testing needed for other sites.

I did notice comment for TODO (future work) to add a hook to this. That would come in handy so this patch wouldn't be necessary.

Thanks!

niles38’s picture

Status: Active » Needs review
niles38’s picture

Issue summary: View changes
niles38’s picture

Version: 8.x-1.2 » 2.0.1
StatusFileSize
new585 bytes

Here's the same patch for 2.0.1.

unsettlingtrend’s picture

StatusFileSize
new576 bytes

Same patch, again, for 2.0.3 (D10 ready)