Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem / Motivation
Taxonomy Term Edit Link field handler ignoring settings from `Output this field as a link` (rewrite results).
Solution
Patch attached. Tested on latest releases of Drupal 7 on dev version of Views 7.x-3.x-dev.
Comment | File | Size | Author |
---|---|---|---|
#8 | views-fix_term_link_edit_fix_rewrite_results_settings-2742805-8-D7.patch | 2.14 KB | abramm |
| |||
#4 | 2742805-4-views-term_link_edit-fix_rewrite_results_settings-7.x-3.x.patch | 2.15 KB | bohart |
|
Comments
Comment #2
podarokMissed docblock
Comment #3
podarokthis needs to be taxonomy/../edit link
Comment #4
bohartUpdated patch attached.
Comment #5
podarokCode looks good. Can be merged.
Comment #6
abrammWorks for me; re-checked at simplytest.me to ensure it's not affected by other modules.
Comment #7
MrPeanut CreditAttribution: MrPeanut commentedPatch from #4 no longer applies.
Comment #8
abrammHi MrPeanut,
Here's a re-roll for latest 7.x-3.x-dev.
Comment #9
DamienMcKennaCommitted. Thanks.
Comment #11
DamienMcKennaComment #13
salbertz CreditAttribution: salbertz commentedHmm - now the field is no longer rendered as link at all by default (i.e. if "output as link" is _not_ checked) - which is not what you would expect of a field called "term edit link". The path is not altered as intended by setting $this->options['alter']['path'], but a simple string returned by $this->render(). (Tested with Drupal 7.67 and views 3.23.)
Comment #14
vaccinemedia CreditAttribution: vaccinemedia commented@salbertz I am also seeing this issue which is what led me here to find I'm not going a bit crazy ;) I was wondering why all of my edit links had stopped working.