neos / neos-development-collection

The unified repository containing the Neos core packages, used for Neos development.
https://www.neos.io/
GNU General Public License v3.0
260 stars 220 forks source link

BUGFIX: Build URI path based on parent from "target" dimensionSpacePoint #5091

Open kdambekalns opened 1 month ago

kdambekalns commented 1 month ago

When creating a node variant via switching of dimensions, the URI path projection did not take the URI (path) of the (new) parent into account. The URI was the "original" URI, regardless of the potentially differing URI path segments in the variants of the "new parents".

Now a node variant has a URL built from it's parent(s) in it's own dimensions.

Fixes #5090

Upgrade instructions

If affected by the bug, you can run

./flow cr:projectionreplay 'Neos\Neos\FrontendRouting\Projection\DocumentUriPathProjection'

to fix the projection.

Review instructions

Reproduction is described in the issue.

Checklist

kdambekalns commented 1 month ago

Yeah, I'll add a test. And I am confused, because I saw that work yesterday, and today it does no longer? 🤔