Skip to content

Commit ebb23cb

Browse files
committed
Merge branch 'sw-24973/5.6/fix-hreflang-on-error-page' into '5.6'
SW-24973 - Fix broken hreflang tags on 404 page See merge request shopware/5/product/shopware!276
2 parents a6fdbe5 + f060dc3 commit ebb23cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/Shopware/Plugins/Default/Frontend/Seo/Bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function onPostDispatch(Enlight_Controller_ActionEventArgs $args)
147147
$view->assign('SeoMetaDescription', $metaDescription);
148148
}
149149

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

153153
$params = $request->getParams();

0 commit comments

Comments
 (0)