diff --git a/src/Plugin/Field/FieldFormatter/IvwAmpFormatter.php b/src/Plugin/Field/FieldFormatter/IvwAmpFormatter.php index aa4f883..2ba8f54 100644 --- a/src/Plugin/Field/FieldFormatter/IvwAmpFormatter.php +++ b/src/Plugin/Field/FieldFormatter/IvwAmpFormatter.php @@ -167,7 +167,7 @@ public function viewElements( foreach ($items as $delta => $item) { $st = $this->configFactory->get('ivw_integration.settings')->get('mobile_site'); - $cp = $this->tokenService->replace( + $cp = 'amp-' . $this->tokenService->replace( $this->configFactory->get('ivw_integration.settings')->get('code_template'), ['entity' => $items->getEntity()], [