User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This change was created with the help of AI (Claude Code).
When the single weblink view is opened with an id that does not exist, AdminModel::getItem() returns false and stores the string JLIB_APPLICATION_ERROR_NOT_EXIST as error. handleModelErrors() only rethrows Exception objects with code 404, so it throws a GenericDataException with code 500 instead.
The view now throws a 404 "Web Link not found." when no item was loaded.
Open index.php?option=com_weblinks&view=weblink&id=99999 on the frontend (an id that does not exist).
404 error page "Web Link not found."
500 error page.
None