diff --git a/ckan/config/environment.py b/ckan/config/environment.py index c6e13b62af7..1b0151e11b1 100644 --- a/ckan/config/environment.py +++ b/ckan/config/environment.py @@ -173,6 +173,7 @@ def find_controller(self, controller): search.check_solr_schema_version() config['routes.map'] = routing.make_map() + config['routes.named_routes'] = routing.named_routes config['pylons.app_globals'] = app_globals.app_globals # initialise the globals config['pylons.app_globals']._init() diff --git a/ckan/lib/helpers.py b/ckan/lib/helpers.py index 826658ed151..129d452a8d9 100644 --- a/ckan/lib/helpers.py +++ b/ckan/lib/helpers.py @@ -416,7 +416,7 @@ def build_nav(menu_item, title, **kw): def _make_menu_item(menu_item, title, **kw): - _menu_items = config['routes.menu_item_data'] + _menu_items = config['routes.named_routes'] if menu_item not in _menu_items: raise Exception('menu item `%s` cannot be found' % menu_item) item = copy.copy(_menu_items[menu_item])