Closed (fixed)
Project:
Menu Token
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jan 2013 at 14:55 UTC
Updated:
6 Mar 2015 at 05:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
malberts commentedChanged 2 things:
1. The original code assumes entity type = token type.
2. The context loader plugin assumes the entity path has this pattern: [something]/[entity_id]
I'm not 100% happy with (2) because I couldn't find any cleaner way to get the entity represented by the URL. However, they way I have it now it should work for things like "taxonomy/term/123" and also on a View page, for example "taxonomy/term/123/news".
I noticed that the beta version is newer than the dev version, however the patch applied cleanly locally on both dev and beta-5.
Comment #2
malberts commentedPrevious patch's URL sniffing died when editing menu links.
Comment #3
develcuy commentedCode looks great but I would like to see passing tests. Nice opportunity for somebody that would like to showcase their simpletest skills in a popular module ;)
Comment #4
develcuy commentedComment #5
develcuy commentedOK, nobody wants to write a patch... if the patch applies I'll commit it as is!
Comment #6
develcuy commentedThere you go @malberts!
Comment #7
develcuy commented