From 446193a539a3228cf598a9f3f3743f8ebf838427 Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Tue, 4 Aug 2026 14:50:55 -0300 Subject: [PATCH] Use correct context term. --- islandlives.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/islandlives.module b/islandlives.module index 5fefe6e..7c9839b 100644 --- a/islandlives.module +++ b/islandlives.module @@ -26,7 +26,7 @@ function islandlives_pathauto_pattern_alter(PathautoPatternInterface $pattern, a // Taxonomy Terms: Only act if the pattern has machine name `person_vocabulary`. if ($pattern->id() == 'person_vocabulary') { // If term has no PID... - $term = $context['data']['taxonomy_term']; + $term = $context['data']['term']; $pid = $term->get('field_pid')->value; if ($pid == NULL) { // Replace the PID with the TID in the alias.