Commit 51aa8443 authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

[url-rewrite] remove buggy url rewrite

url_id is mandatory. usage of url_id as rest_attr usage have been fixed in
conference we may drop this anoying url-rewrite rules.
parent 086d48a3affe
...@@ -221,10 +221,6 @@ from cubicweb.web.views.urlrewrite import SimpleReqRewriter, rgx ...@@ -221,10 +221,6 @@ from cubicweb.web.views.urlrewrite import SimpleReqRewriter, rgx
class ConfRewrite(SimpleReqRewriter): class ConfRewrite(SimpleReqRewriter):
rules = [ rules = [
(rgx('/conference/(\d+)'),
dict(rql='Any C WHERE C is Conference, C eid "%(eid)s"' % {'eid': r'\1'})),
(rgx('/conference/([^/]+)'),
dict(rql='Any C WHERE C is Conference, C url_id "%(id)s"' % {'id': r'\1'})),
(rgx('/conference/([^/]+)/registration'), (rgx('/conference/([^/]+)/registration'),
dict(rql='Any C WHERE C is Conference, C url_id "%(id)s"' % {'id': r'\1'}, dict(rql='Any C WHERE C is Conference, C url_id "%(id)s"' % {'id': r'\1'},
vid='conf-registration')), vid='conf-registration')),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment