From 7339eeba268ab7b26140aee02a26f06b29848150 Mon Sep 17 00:00:00 2001 From: Ivo Valchev Date: Tue, 23 Feb 2021 15:41:44 +0100 Subject: [PATCH] Initialise SEO fields when duplicating content --- src/Widget/SeoInjectorWidget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Widget/SeoInjectorWidget.php b/src/Widget/SeoInjectorWidget.php index 5f3ac18..62ab5d6 100644 --- a/src/Widget/SeoInjectorWidget.php +++ b/src/Widget/SeoInjectorWidget.php @@ -24,7 +24,7 @@ public function run(array $params = []): ?string /** @var Request $request */ $request = $this->getExtension()->getRequest(); - if (! \in_array($request->get('_route'), ['bolt_content_edit', 'bolt_content_new'], true) || + if (! \in_array($request->get('_route'), ['bolt_content_edit', 'bolt_content_new', 'bolt_content_duplicate'], true) || ($this->getExtension()->getRequest()->getMethod() !== 'GET')) { return null; }