From a6ca7fad68d9969953c8d6f5100ee348d818d2b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Sch=C3=BCtz?= Date: Mon, 4 Mar 2019 23:10:17 +0100 Subject: [PATCH] BUGFIX: Support controller routes on the homepage --- Configuration/Routes.yaml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Configuration/Routes.yaml b/Configuration/Routes.yaml index dbf341a..77ba2a0 100644 --- a/Configuration/Routes.yaml +++ b/Configuration/Routes.yaml @@ -1,5 +1,23 @@ - - name: 'Comments Form' + name: 'Comments Form on Homepage' + uriPattern: '{node}comment/{--webexcess_comments-form.@action}' + defaults: + '@package': 'Neos.Neos' + '@controller': 'Frontend\Node' + '@format': 'html' + '@action': 'show' + '--webexcess_comments-form': + '@package': 'WebExcess.Comments' + '@controller': 'Comments' + '@format': 'html' + routeParts: + node: + handler: Neos\Neos\Routing\FrontendNodeRoutePartHandler + options: + onlyMatchSiteNodes: true + appendExceedingArguments: true +- + name: 'Comments Form on Subpages' uriPattern: '{node}/comment/{--webexcess_comments-form.@action}' defaults: '@package': 'Neos.Neos'