Changeset 687


Ignore:
Timestamp:
10/29/08 21:38:58 (5 years ago)
Author:
cbalan
Message:

Menus: - Fixed context showing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/menusplugin/tracmenus/web_ui.py

    r684 r687  
    44# 
    55import re 
     6from urlparse import urlsplit 
    67 
    78from trac.core import * 
     
    7576            tree_node['visited'] = True  
    7677            if tree_node.get('href'): 
    77                 tree_node.setdefault('active', tree_node['href'].startswith(req.path_info))    
     78                tree_node.setdefault('active', urlsplit(tree_node['href']).path==req.path_info)    
    7879 
    7980            if '_tmp_children' in tree_node: 
Note: See TracChangeset for help on using the changeset viewer.