diff --git a/web/modules/custom/simple_message/src/DisplaySimpleMessage.php b/web/modules/custom/simple_message/src/DisplaySimpleMessage.php
index 8abcd47..7e49389 100644
--- a/web/modules/custom/simple_message/src/DisplaySimpleMessage.php
+++ b/web/modules/custom/simple_message/src/DisplaySimpleMessage.php
@@ -24,6 +24,10 @@ class DisplaySimpleMessage implements EventSubscriberInterface {
}
public function displayMessage(GetResponseEvent $event) {
+ if (\Drupal::service('router.admin_context')->isAdminRoute()) {
+ return;
+ }
+
$this->messenger->addMessage($this->t('This site is running on a Vagrant server, deployed with Ansible and Ansistrano.', [
'@ansible' => 'https://ansible.com',
'@ansistrano' => 'https://ansistrano.com',