From f13dcb12ceebaaf3b4f0aca7143c93df2cd50430 Mon Sep 17 00:00:00 2001 From: Wilhelm Behncke Date: Sun, 23 Jul 2017 11:25:03 +0200 Subject: [PATCH] BUGFIX: Add default formats to monocle routes This fixes an annoying bug, through which flow couldn't figure out the correct route to redirect to after login. So, when your session timed out, you got to see the Neos login screen after which you got redirected to a 404 page. By adding `@format` to the default values, this redirect works now. --- Configuration/Routes.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Configuration/Routes.yaml b/Configuration/Routes.yaml index f8f92eaa..327feabc 100644 --- a/Configuration/Routes.yaml +++ b/Configuration/Routes.yaml @@ -19,7 +19,8 @@ defaults: '@package': 'Sitegeist.Monocle' '@subpackage': '' - '@controller' : 'Api' + '@controller': 'Api' + '@format': 'html' httpMethods: ['GET','POST'] - @@ -28,5 +29,6 @@ defaults: '@package': 'Sitegeist.Monocle' '@subpackage': '' - '@controller' : 'Preview' + '@controller': 'Preview' + '@format': 'html' httpMethods: ['GET','POST']