Skip to content

IBX-11423 cant delete product urlalias for translations - #289

Draft
papcio122 wants to merge 3 commits into
4.6from
IBX-11423_cant-delete-product-urlalias-for-translations
Draft

papcio122 wants to merge 3 commits into
4.6from
IBX-11423_cant-delete-product-urlalias-for-translations

Conversation

@papcio122

Copy link
Copy Markdown
🎫 Issue IBX-11423

Related PRs:

Description:

DELETE /content/urlaliases/{id} fails with 404 for a custom URL alias whose language is not in the SiteAccess's prioritised languages. URLAlias::deleteURLAlias() loads the alias with URLAliasService::load(), which filters by prioritised languages, so the alias can't be found and isn't removed.

Same fix as in admin-ui: pass $showAllTranslations = true to URLAliasService::load() (added in ibexa/core#740) so the alias is loaded in any language before removal.

Added an integration test (tests/integration/Server/Controller/URLAliasTest.php) that creates a custom alias in nor-NO, deletes it through the controller, and asserts it's gone. The test fails without the fix and against core without #740.

GET /content/urlaliases/{id} has the same language filtering but is left unchanged here, since filtering on read may be intended.

TEMPORARY: dependencies.json points CI at the ibexa/core#740 branch and must be removed before merging.

Points CI at the branch adding the $showAllTranslations argument to
URLAliasService::load(). Must be removed before merging.
@papcio122 papcio122 changed the title Ibx 11423 cant delete product urlalias for translations IBX-11423 cant delete product urlalias for translations Nov 30, 2026
@sonarqubecloud

sonarqubecloud Bot commented Dec 1, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant