- Issue created by @fox mulder
Why does the /admin/content/simpleads/NON_EXISTENT_AD_ID/stats route throw an InvalidArgumentException instead of behaving like the /admin/content/simpleads/NON_EXISTENT_AD_ID/edit route, which simply returns a "Page not found" page?
InvalidArgumentException: Unable to load SimpleAds advertisement entity. in Drupal\simpleads\Entity\ParamConverter\AdvertisementConverter->convert() (line 30 of modules/contrib/simpleads/src/Entity/ParamConverter/AdvertisementConverter.php).
Modify the convert() method to return NULL instead of throwing an exception when the entity cannot be loaded.
Active
2.0
Code