Skip to content

Routing "wins" over redirect #57

@kdambekalns

Description

@kdambekalns

Behaviour

Assuming

  1. a node exists and is visible in Neos
  2. a redirect is (manually) added that redirects the URL of that node somewhere else

then the redirect is not used as long as the node is not hidden.

If the redirect component (tried it on Neos 4.3 👻) is moved before routing (instead of after routing, it works.

Question

This is the intended behaviour, looking at the check for possible routing results (in the middleware and the component)

But what is what people expect? At least I stumbled over this because a customer notified me of a "bug" – so the behaviour is not crystal clear to everyone.

Possible solution

One way is to adjust the position through the configuration, that is even documented (but it could be worded differently for Neos, and/or put in the neos/redirecthandler-neosadapter documentation, too.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions