Closed (fixed)
Project:
Menu Trail By Path
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 May 2012 at 13:02 UTC
Updated:
30 Oct 2012 at 22:26 UTC
Jump to comment: Most recent file
Comments
Comment #1
opiIt's because _menu_trail_by_path_get_parent_candidates() call request_path(); which return the full path, with language prefix.
I think _menu_trail_by_path_get_parent_candidates() should call drupal_get_path_alias() instead.
Comment #2
guillaumev commentedI just tested what was described in comment #1 and it works. I created a patch for this.
Comment #3
guillaumev commentedI went too fast. Changing request_path by drupal_get_path_alias works, in fact, but items in the breadcrumb are not translated. Here is a patch that fixes this...
Comment #4
guillaumev commentedFor impatient people like myself, here is a patch that works with RC2.
Comment #5
SeriousMatters commentedI admit I'm not very familiar with i18n (Locale is all I used for multilingual sites). Can we have more review/testing?
Comment #6
mxtPatch provided in #4 works very well for me.
Can this be committed please?
Thank you very much.
Comment #7
design.er commentedPatch #4 works perfectly on my i18n site. Thanks a lot! :)
Comment #8
yurg commented#4 works for multilingual site, active-classes weren't set until patch was applied. Thanks!
Comment #9
mxtI think 3 positive responses are enough.
Can this be committed please?
Comment #10
jurgenr commented+1 to commit.
Patch works perfectly.
Jurgen.
Comment #11
SeriousMatters commentedcommitted and pushed.
guillaumev++
Comment #13
caspercash commentedI can't see this patch
implemented in the 7.x-2.x-dev version neither in the 7.x-2.0-rc2.
Comment #14
guillaumev commentedHere is a link to the commit: http://drupalcode.org/project/menu_trail_by_path.git/blobdiff/928086b4a4...
It seems like the module maintainer chose a different solution than what I proposed in the patch, but still a valid one, which is available in 7.x-2.x-dev
Comment #15
lpalgarvio commentedplease publish the new version.
thanks =)
Comment #16
lpalgarvio commentedhum, i'm not really sure this is working...
#1271152: Menu collapses on node pages?
Comment #17
SeriousMatters commentedLPCA, This issue is about path with language prefix. If you have a different problem, please open a new support request / bug report issue. Remember to describe the steps to reproduce your problem.