Skip to content

Commit

Permalink
Merge pull request #819 from chapter-three/hotfix/SRL-647--revert-foo…
Browse files Browse the repository at this point in the history
…ter-index-link

SRL-647: revert footer index link language URL attempt
  • Loading branch information
melwong-jcc authored Sep 14, 2022
2 parents 16b0b73 + 688ddb8 commit 79ced27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/themes/custom/atrium/includes/paragraph.inc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function atrium_preprocess_paragraph(&$variables) {
if(count($terms) == 1){
if (!$terms[0]->get('field_url')->isEmpty()) {
$variables['switchboard_footer']['label'] = t('Already know what you are looking for?');
$term_custom_uri = \Drupal::service('entity.repository')->getTranslationFromContext($terms[0])->get('field_url')->getValue();
$term_custom_uri = $terms[0]->get('field_url')->getValue();

if($case_forms_url){
$variables['switchboard_footer']['buttons'][0]['url'] = $case_forms_url;
Expand Down

0 comments on commit 79ced27

Please sign in to comment.