diff --git a/kraken.theme b/kraken.theme index 5910ba9..dd00d4d 100755 --- a/kraken.theme +++ b/kraken.theme @@ -409,7 +409,7 @@ function kraken_preprocess_page(&$variables) if (!empty($vpr_portfolio_signature)) { $vpr_sig = \Drupal\file\Entity\File::load($vpr_portfolio_signature['0']); $uri = $vpr_sig->getFileUri(); - $vpr_sig_url = \Drupal\Core\Url::fromUri(file_create_url($uri))->toString(); + $vpr_sig_url = \Drupal::service('file_url_generator')->generate($uri)->toString(); $variables['vpr_sig_url'] = $vpr_sig_url; } }