Closed (outdated)
Project:
Pathauto
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 May 2010 at 20:44 UTC
Updated:
7 Feb 2026 at 18:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
gregglesThis is a known issue. Either I'm not imaginative enough or it's not reasonable to fix. So, I'm tempted to "won't fix" this but am leaving it open in case someone else has insight
Comment #2
klonosWell, I don't have insight, but this is a really good feature request!
Usually terms do not get updated that much in most of my sites, but when/if they do this proves to be a major pain. I think that it should be handled by pathauto so definitely shouldn't be a 'won't fix'. Perhaps set to 'postponed'?
Comment #3
alroirm commentedI've been taking a look at the code and saw why you say "it's not reasonable to fix"...
However making pathauto export some actions like "update node aliases" would help some people to solve some of their particular problems with a trigger (newbie, just guessing).
Comment #4
gregglesPathauto already provides such an action for nodes. It doesn't do so for terms or users but there are issues for that.
Comment #5
dave reidBetter title for this feature request.
Comment #6
dave reidI think what we'll have to do is add an 'entity URL alias update queue' in Pathauto. So let's say a taxonomy term is updated, we need to add all of its children into an update queue. At the end of the page request or on cron, we process a set number of items. We do the same thing when a term associated with 100 nodes is updated. We put those 100 nodes in the queue as well.
Comment #7
dave reidSo basics on how it would work:
When a taxonomy term is updated, fetch all the term IDs of its direct children and enqueue them in the URL alias update queue
Comment #8
klonosGood thinking Dave!
How would we detect terms that have been updated though? Perhaps this feature should be worked in pathauto and core taxonomy at the same time(?). Or is there a hook available already?
Comment #9
dave reidhook_taxonomy_term_update() already exists in core and is implemented in pathauto.
Comment #10
gregglesThis should have been here anyway:
That works for me!
Comment #11
dave reidThe fun thing about this, is each level of taxonomy children will add their own children back into the queue as well. It propagates until *all* children are updated. Fun huh? :)
Comment #12
dave reidComment #13
klonosDave, I was going through #290421: pathauto patch to provide localized and entity translated taxonomy through i18n and some other issues (#736178: Add a [node:source] token for source node of a translated node for example), in order to re-test things with latest dev versions and patches just to see at what point some of my long-standing issues are solved or not... if solved at all. I was especially puzzled about this comment:
...here and I thought it might be relevant and I should bring it to your mind in case it already wasn't.
Comment #14
rszrama commentedAlrighty, get ready for a big ol' patch to review.
This patch takes the approach you outlined above and expands on it. A summary of its functionality includes:
I did some user testing as well and happily watched child term updates process when their parent terms were updated and node updates process when their referenced terms or author user accounts were updated.
fwiw, this also makes my installation with 350k terms in a single vocabulary performant again when I update a term in that vocabulary. : )
Comment #15
dave reidComment #16
joseph.olstadpatch #14 needs reroll
Comment #17
chris matthews commentedComment #18
shubham.prakash commentedRerolled from #14.
Comment #19
mably commented