- Issue created by @joachim
A lot of contrib config entities define a canonical link template but not a view builder, e.g. in Entity Share:
* links = {
* "canonical" = "/admin/config/services/entity_share/channel/{channel}",
This means that this code in Responsive Preview crashes:
if ($entity->hasLinkTemplate('canonical')) {
return $entity->toUrl()->toString();
}
Install a module such as Entity Share and try edit a channel config entity.
1. Don't act on config entities
2. Move the check for admin routes to the top of the method, as there's no point doing anything on admin routes
Active
2.2
Code