2016-10-19 35 views
1

在我的magento 2網站中,我在客戶儀表板中創建了新的自定義導航。我已經爲安全的網址啓用了https。我帳戶導航中的所有鏈接都是https,但我的自定義鏈接位於http中。我如何使它https?Magento 2 https中的自定義客戶導航

回答

1

實測溶液在模塊等/前端/ di.xml添加以下代碼

<type name="Magento\Framework\Url\SecurityInfo"> 
    <arguments> 
     <argument name="secureUrlList" xsi:type="array"> 
      <item name="subscription" xsi:type="string">/subscription/</item> 
     </argument> 
    </arguments> 
</type> 

如果url有/訂閱/那麼它會被認爲是HTTPS