bencarr / statamic-hyperlink

Hyperlink is a Statamic addon that expands the default Link fieldtype and allows you to store link text and target options alongside the link destination.
https://statamic.com/addons/bencarr/hyperlink
3 stars 1 forks source link

Fix missing link reference elements throwing PHP error #14

Closed bencarr closed 3 months ago

bencarr commented 3 months ago

Fail gracefully when a link's related element can no longer be found (#13). Links will keep their target and text options, but will not output a URL. Visiting the entry in the control panel will highlight the undefined item using the normal behavior for Statamic's entries, assets, and terms components.