This is a fix for issue #39, but to be honest I'm not sure it's a good one because of my lack of knowledge on neos internals.
This PR basically converts the a node path available by matchResults into a node. If the node is available - e.g. not hidden - the redirect will be not be used. If the node is not available the redirect handling is done.
My concerns with this are:
I don't know why I need the withoutAuthorizationChecks call. The NodeConverter itself has the securityContext injected, but doesn't use it. So the need for withoutAuthorizationChecks might be due to some sideeffect where the security context is not yet initalized when the redirect handler is running?
Since I'm using NodeInterface and NodeConverter, these changes tightly couple the redirecthandler to the ContentRepository. So, I'm not sure if I need to change composer.json or what to add there?
I'm not sure if it's ok to directly use NodeConverter->convertFrom() without some kind of PropertyMapper. It works, but I'm not sure if it is kind of good practice?
This is a fix for issue #39, but to be honest I'm not sure it's a good one because of my lack of knowledge on neos internals.
This PR basically converts the a node path available by
matchResults
into a node. If the node is available - e.g. not hidden - the redirect will be not be used. If the node is not available the redirect handling is done.My concerns with this are:
withoutAuthorizationChecks
call. The NodeConverter itself has the securityContext injected, but doesn't use it. So the need forwithoutAuthorizationChecks
might be due to some sideeffect where the security context is not yet initalized when the redirect handler is running?