Skip to content

Commit

Permalink
Merge pull request #16 from I-Valchev/patch-1
Browse files Browse the repository at this point in the history
Initialise SEO fields when duplicating content
  • Loading branch information
Fredxd authored Feb 23, 2021
2 parents b2bd7a5 + 7339eeb commit 4aad5ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Widget/SeoInjectorWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4aad5ae

Please sign in to comment.