diff --git a/superfish.module b/superfish.module
index 517b7e8..5885bed 100644
--- a/superfish.module
+++ b/superfish.module
@@ -10,6 +10,16 @@ use Drupal\Core\Block\BlockPluginInterface;
 use Drupal\Component\Utility\SafeMarkup;
 
 /**
+ * Implements hook_block_view_BASE_BLOCK_ID_alter().
+ */
+function superfish_block_view_superfish_alter(array &$build, BlockPluginInterface $block) {
+  $menu_name = $block->getDerivativeId();
+  $build['#contextual_links']['menu'] = array(
+    'route_parameters' => array('menu' => $menu_name),
+  );
+}
+
+/**
  * Generate a list of available slide-in effects.
  */
 function superfish_effects() {
