Commit 15905196 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

Set ignore_baseclass_rules to true on URL rewriter component

else it will also check for all basic rules defined in cubicweb, while we only
want to add a single route here.
parent 969994a7bb3b
...@@ -198,6 +198,7 @@ class RegisterLink(basecomponents.HeaderComponent): ...@@ -198,6 +198,7 @@ class RegisterLink(basecomponents.HeaderComponent):
# urls ######################################################################### # urls #########################################################################
class RegistrationSimpleReqRewriter(urlrewrite.SimpleReqRewriter): class RegistrationSimpleReqRewriter(urlrewrite.SimpleReqRewriter):
ignore_baseclass_rules = True
rules = [ rules = [
('/register', dict(vid='registration')), ('/register', dict(vid='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