Closed (fixed)
Project:
Pathauto
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Dec 2008 at 10:41 UTC
Updated:
24 Feb 2010 at 21:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
seaji commentedIs anybody noticed me???
Comment #2
ahkiam commentedBy "not working properly" what do you mean? What's happening -- is it similar to http://drupal.org/node/354100?
Comment #3
seaji commentedI think that enclosed code explane itself fine.
But if you want particular use case I do it.
I write my module "journal" that manages own vocabulary and output of articles listings.
Example:
System path: journal/term/26 (registered menu callback)
Alias : journal/events
Title of this term in Russian: события
taxonomy path "taxonomy/term/26" - have no alias and is not used in site.
Articles marked "события" (taxonomy term 26) should be displayed on the page "journal/events" and each of them should have alias "journal/events/3456" where 3456 - node ID.
My pattern for pathauto is : [termalias]/[nid]
Before this patch I have auto alias: "3456" instead of "journal/events/3456".
This patch fix this issue.
Comment #4
seaji commentedThe same issue you may face with "Image" module and "Taxonomy Redirect" module under certain conditions.
Comment #5
seaji commentedAny response?
Comment #6
gregglesSure. I'm not affected by this bug and don't immediately see a way to fix it. If you want it fixed, you'll likely need to dig in yourself and provide a patch and get it reviewed.
You may also want to try 5.x-2.x-dev. There haven't been many changes, but I believe there was a change related to this.
Also, the more you bump an issue the less likely I am to help with it (or help you in the future in general).
Comment #7
seaji commentedI am not much skilled in making patches. But I post fixing code in the first post.
File: pathauto.module
Line 143 - 144 should be:
instead of:
And I NEED NO HELP. I fixed it for my self. But I want to ease life of comunity members.
If you do not want to maintain your project then only God can help you.
Comment #8
gregglesSeriously?
This was already fixed in HEAD!
Comment #9
seaji commentedDuplicated? Hm...
Point me duplicated post.
Comment #10
seaji commentedNot duplicated.
Comment #11
seaji commentedIt is not fixed in HEAD!
see img.
Comment #12
neochief commentedComment #13
neochief commentedAs I can see, this bug currently present in both branches.
Comment #14
neochief commentedHere's also for HEAD, I don't know which is actually needed.
Comment #15
andypostConfirm this bug, taxonomy term should be passed through hook_term_path because some vocabularies use own path for example core forum.
Patch from #13 against 6-1 works fine for me, suppose other branches should be fixed the same way
Comment #16
gregglesAny chance I can convince someone to write simpletests for this? We've already got tests started - they just need a little more love to cover this scenario. Docs on how to write/debug simpletests are in http://drupal.org/node/394976
Comment #17
andypostSuppose test should be like:
1) enable core forum
2) setup path alias for taxonomy/term/
3) setup path alias for forum/
4) create forum
5) assert check path alias for taxonomy/term/{forumID} which should be different from forum/{forumID}
because core forum overrides this through hook_term_path
http://api.drupal.org/api/function/forum_term_path (maybe d7 have a some test for this case)
Comment #18
gregglesFixed for 6.x-1.x and 6.x-2.x (the old head) can someone update this for 7.x?
Thanks neochief and andypost!
Edited to add links to http://drupal.org/cvs?commit=326976 and http://drupal.org/cvs?commit=326974
Comment #19
dave reidIn D7 taxonomy_term_path is gone, so this is fixed for all now.