diff --git a/src/Controller/ActionLinkController.php b/src/Controller/ActionLinkController.php
index bcb5e75..7dd287d 100644
--- a/src/Controller/ActionLinkController.php
+++ b/src/Controller/ActionLinkController.php
@@ -13,6 +13,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 use Drupal\flag\FlagInterface;
 use Drupal\flag\FlagServiceInterface;
 use Symfony\Component\HttpFoundation\Request;
+use Zend\Stdlib\Exception\LogicException;
 
 /**
  * Provides a controller to flag and unflag when routed from a normal link.
@@ -150,12 +151,15 @@ class ActionLinkController extends ControllerBase implements ContainerInjectionI
 
       return $response;
     }
-    else {
+    elseif ($entity->hasLinkTemplate('canonical')){
       // Redirect back to the entity. A passed in destination query parameter
       // will automatically override this.
       $url_info = $entity->toUrl();
       return $this->redirect($url_info->getRouteName(), $url_info->getRouteParameters());
     }
+    else {
+      throw new \LogicException('IDK!');
+    }
 
   }
 
