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

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

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)

astonvictor made their first commit to this issue’s fork.

astonvictor’s picture

Version: 2.0.1 » 2.0.x-dev
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.