fix home pricing links

This commit is contained in:
Bachir Soussi Chiadmi 2021-01-26 10:58:09 +01:00
parent 2d07379946
commit 26c81c7c8e
3 changed files with 7 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -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;
}
/**

View File

@ -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>