Skip to content

Commit

Permalink
Merge branch 'sw-24973/5.6/fix-hreflang-on-error-page' into '5.6'
Browse files Browse the repository at this point in the history
SW-24973 - Fix broken hreflang tags on 404 page

See merge request shopware/5/product/shopware!276
  • Loading branch information
shyim committed Feb 27, 2020
2 parents a6fdbe5 + f060dc3 commit ebb23cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/Shopware/Plugins/Default/Frontend/Seo/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function onPostDispatch(Enlight_Controller_ActionEventArgs $args)
$view->assign('SeoMetaDescription', $metaDescription);
}

if ($this->get('config')->get('hrefLangEnabled')) {
if (!$request->getParam('error_handler') && $this->get('config')->get('hrefLangEnabled')) {
$context = $this->get('shopware_storefront.context_service')->getShopContext();

$params = $request->getParams();
Expand Down

0 comments on commit ebb23cb

Please sign in to comment.