Skip to content

Fix error when editing entries without URLs in multisite - #688

Merged
duncanmcclean merged 1 commit into
7.xfrom
alternate-locales-without-urls
Oct 2, 2026
Merged

duncanmcclean merged 1 commit into
7.xfrom
alternate-locales-without-urls

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request fixes an issue where editing a localized entry in a collection without a route would throw a `Cascade::absoluteUrlIn(): Return value must be of type string, null returned` error.

This was happening because #678 added a `string` return type to `absoluteUrlIn()`, but entries without a route don't have a URL.

This PR fixes it by excluding localizations without URLs from the alternate locales, since an hreflang without a URL isn't useful anyway.

Fixes #687
Caused by #678

@duncanmcclean
duncanmcclean merged commit 0aad587 into 7.x Oct 2, 2026
17 checks passed
@duncanmcclean
duncanmcclean deleted the alternate-locales-without-urls branch October 2, 2026 08:47
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.

Laravel error message when editing multilingual collection entries

1 participant