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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | eck-provide_path_alias_upgrade_path_from_alpha3-3019073-2.patch | 3.39 KB | iamEAP |
Comments
Comment #2
iamEAP commentedAttaching patch for review.
Comment #3
romixuaComment #4
romixuaComment #5
dieterholvoet commentedCannot reproduce, feel free to re-open if this is still an issue.