Problem/Motivation

After upgrading to 8.x-1.0-alpha4 (or alpha5) from alpha3 (or older), when I run $eckEntity->toUrl()->toString(), the value returned is the canonical path of the entity (now /{entity_type}/{entity_id}), rather than the alias set for the entity.

Previously, if a path alias for the entity was set, it would load the path alias. This is expected behavior for Entity::toUrl().

Proposed resolution

It would be nice to provide an upgrade path from alpha3 to newer versions of the alpha, accounting for the path cleanup work undertaken in #2624784: Properly sort out ECK routing, paths and breadcrumbs.. An update hook seems reasonable.

Comments

iamEAP created an issue. See original summary.

iamEAP’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new3.39 KB

Attaching patch for review.

romixua’s picture

Assigned: Unassigned » romixua
Issue tags: +epam-contrib-2019.03
romixua’s picture

Assigned: romixua » Unassigned
Issue tags: -epam-contrib-2019.03
dieterholvoet’s picture

Status: Needs review » Closed (cannot reproduce)

Cannot reproduce, feel free to re-open if this is still an issue.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.