소스 검색

fix home pricing links

bach 3 년 전
부모
커밋
26c81c7c8e

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 3 - 0
web/themes/custom/materiotheme/assets/dist/main.js


+ 2 - 0
web/themes/custom/materiotheme/materiotheme.theme

@@ -186,6 +186,8 @@ function materiotheme_preprocess_commerce_product(array &$variables) {
     unset($variables['product']['variation_field_multiple']);
     unset($variables['product']['variation_commerce_variation_cart_form']);
   }
+  $language = \Drupal::languageManager()->getCurrentLanguage()->getId();
+  $variables['language'] = $language;
 }
 
 /**

+ 1 - 1
web/themes/custom/materiotheme/templates/content/commerce-product--home-summary.html.twig

@@ -21,7 +21,7 @@
 #}
 <article{{ attributes }}>
   {{- product|without('variation_attributes') -}}
-  <a href="/pricing" @click.prevent="onClickLink" class="btn">
+  <a href="/{{ language }}/pricing" @click.prevent="onClickLink" class="btn">
     {% trans %}View Option Details{% endtrans %}
   </a>
 </article>

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.