We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With the new link-field in Kirby 4 it is possible to add links to intern pages in textarea fields. This looks like this:
(link: page://sk0iiTNRft7shn6R text: Link)
If the page is deleted afterwards or if the ID is manually changed by the user, the link-conversion by kirbytext() causes an php fatal error.
kirbytext()
Expected behavior Link should be removed because it's not valid.
<?= $page->textareafield()->kirbytext() ?>
Kirby Version Kirby 4
Console output Call to a member function url() on null in /kirby/config/tags.php line 200
The text was updated successfully, but these errors were encountered:
Don't throw exception when uuid point to non-existing page #6083
624180f
4ebdec3
3622618
afbora
Successfully merging a pull request may close this issue.
Description
With the new link-field in Kirby 4 it is possible to add links to intern pages in textarea fields. This looks like this:
(link: page://sk0iiTNRft7shn6R text: Link)
If the page is deleted afterwards or if the ID is manually changed by the user, the link-conversion by
kirbytext()
causes an php fatal error.Expected behavior
Link should be removed because it's not valid.
To reproduce
<?= $page->textareafield()->kirbytext() ?>
in a templateYour setup
Kirby Version
Kirby 4
Console output
Call to a member function url() on null in /kirby/config/tags.php line 200
The text was updated successfully, but these errors were encountered: