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

BUG: "Adopting" a node ignores URI of parent(s) #5090

Open kdambekalns opened 1 month ago

kdambekalns commented 1 month ago

Is there an existing issue for this?

Current Behavior

When creating a node variant via switching of dimensions, the URI path projection does not take the URI (path) of the (new) parent into account.

The URI will be the "original" URI, regardless of the potentially differing URI path segments in the variants "becoming the new parents".

Expected Behavior

A node variant should have a URL built from it's parent nodes in it's own dimensions.

Steps To Reproduce

  1. set up a Neos 9 site with two languages (de & en in my example)
  2. create a page named "oben" in de
  3. create a subpage to "oben" named "innen" in de
  4. go back to "oben" and switch to en, creating an en variant
  5. adjust the uri path segment of that variant from "oben" to "top"
  6. go back to "innen" in de and switch to en, creating an en variant
  7. the URI of that page will now be /en/oben/innen (instead of /en/top/innen)

Environment

- Flow: 9.0.0-beta10
- Neos: 9.0.0-beta10
- PHP: 8.3

Anything else?

Thanks to @kitsunet for debugging this with me!