Closed (fixed)
Project:
Bootstrap
Version:
7.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Jan 2013 at 15:01 UTC
Updated:
19 Nov 2015 at 09:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
generalredneckThis should take care of the problem. It worked for me.
Comment #2
andregriffin commentedComment #3
andregriffin commentedReroll against dev
Comment #4
generalredneckMy bad.
Comment #5
andregriffin commentedThanks.
Comment #7
markhalliwellThe
$language_urlvariable (towards the end) is actually not defined in this function. Where is it coming from??Stumbled upon this when refactoring for 8.x-2.x. Would change the version for this issue, but that branch doesn't have a "release" yet. Tagging for backport.
Comment #8
markhalliwellComment #9
byteways commentedYep, it looks like $language_url is a global variable and should be declared as such in bootstrap_menu_link(), am I correct?
Comment #10
clarkorz commentedDoesn't work with Context menu reaction.
Comment #11
regilero commentedMaybe I do not understand everything, but.. the problem here is to add 'active' when only 'active-trail' is present?
Then why not simply doing it?
Current patch tests the href with q argument, but this will not work for active-trail set via menu_tree_set_path or menu_set_active_trail, as by definition theses things are used to set active trail on things where the path is not an obvious way of finding the active trail.
Comment #13
markhalliwellI'm just moving this back to 7.x. If there needs to be any re-evaluation for 8.x, create a new issue.
Comment #14
kristiaanvandeneynde+1 for regilero in #11
This patch that went in breaks the use of hook_preprocess_menu_link() to unset the active class on a link on the front page.
Comment #15
markhalliwellPlease do not re-open old issues.
Comment #16
kristiaanvandeneyndeFine. #2618828: Move menu_link "active" class logic into a preprocess function and base it on "active-trail"