--- 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)