cubicweb/web/application.py
changeset 11800 3cd5ac8d43ed
parent 11767 432f87a63057
child 11872 a997e5451737
--- a/cubicweb/web/application.py	Fri Nov 04 13:12:10 2016 +0100
+++ b/cubicweb/web/application.py	Fri Nov 04 11:19:11 2016 +0100
@@ -55,6 +55,9 @@
             func_name = func.func_name if PY2 else func.__name__
             warn('[3.24] path argument got removed from "%s" parameters' % func_name,
                  DeprecationWarning)
+            path = args[0] if args else kwargs['path']
+            assert path == req.relative_path(False), \
+                'mismatching path, {0} vs {1}'.format(path, req.relative_path(False))
         return func(self, req)
     return wrapper