# HG changeset patch # User RĂ©mi Cardona # Date 1363112683 -3600 # Node ID e08ab56ea2acbcf28215468ae01ddef493d1cd4b # Parent d2472948da9cc0ec4802bdff168704a96fcc88d0 [component] Fix URL generation for navigation component (closes #2464832) diff -r d2472948da9c -r e08ab56ea2ac web/component.py --- a/web/component.py Fri Feb 08 18:36:00 2013 +0100 +++ b/web/component.py Tue Mar 12 19:24:43 2013 +0100 @@ -108,7 +108,9 @@ view = self.cw_extra_kwargs.get('view') if view is not None and hasattr(view, 'page_navigation_url'): url = view.page_navigation_url(self, path, params) - elif path == 'json': + elif path in ('json', 'ajax'): + # 'ajax' is the new correct controller, but the old 'json' + # controller should still be supported url = self.ajax_page_url(**params) else: url = self._cw.build_url(path, **params)