diff --git a/app/views/producers/_fat.html.haml b/app/views/producers/_fat.html.haml index b053f033c4e..35156e3c514 100644 --- a/app/views/producers/_fat.html.haml +++ b/app/views/producers/_fat.html.haml @@ -78,8 +78,8 @@ .row.cta-container .columns.small-12 %a.cta-hub{"ng-repeat" => "hub in producer.hubs | orderBy:'-active'", - "ng-href" => "{{::hub.path}}", "ng-attr-target" => "_blank", - "ng-class" => "::{primary: hub.active, secondary: !hub.active}", "target" => "_blank"} + "ng-href" => "{{::hub.path}}", "ng-attr-target" => "{{ embedded_layout ? '_blank' : undefined }}", + "ng-class" => "::{primary: hub.active, secondary: !hub.active}"} %i.ofn-i_068-shop-reversed{"ng-if" => "::hub.active"} %i.ofn-i_068-shop-reversed{"ng-if" => "::!hub.active"} .hub-name{"ng-bind" => "::hub.name"} diff --git a/app/views/producers/_skinny.html.haml b/app/views/producers/_skinny.html.haml index 8664537362f..6e05619d07b 100644 --- a/app/views/producers/_skinny.html.haml +++ b/app/views/producers/_skinny.html.haml @@ -3,7 +3,7 @@ %span{"ng-if" => "::producer.is_distributor" } .row.vertical-align-middle .columns.small-12 - %a.is_distributor{"ng-href" => "{{::producer.path}}", "ng-attr-target" => "_blank", "data-is-link" => "true", "target" => "_blank"} + %a.is_distributor{"ng-href" => "{{::producer.path}}", "ng-attr-target" => "{{ embedded_layout ? '_blank' : undefined}}", "data-is-link" => "true"} %i{ng: {class: "::producer.producer_icon_font"}} %span.margin-top %strong{"ng-bind" => "::producer.name"}