Commit 28f5abe5 authored by Ben's avatar Ben Committed by Shelane French
Browse files

Issue #3276056 by glassb, eregeur: Fix URL encoding for special characters

parent 21ee565e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ use Drupal\Core\Block\BlockBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Url;
use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\UrlHelper;
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;

@@ -191,7 +191,7 @@ class SocialSharingButtonsBlock extends BlockBase implements ContainerFactoryPlu

    $items['page_url'] = Url::fromRoute('<current>', [], ['absolute' => TRUE]);
    $items['description'] = '';
    $items['title'] = Html::escape($title);
    $items['title'] = UrlHelper::encodePath($title);
    $items['width'] = $this->configuration['width'] ?? $config->get('width');
    $items['radius'] = $this->configuration['radius'] ?? $config->get('radius');
    $items['facebook_app_id'] = $this->configuration['facebook_app_id'] ?? $config->get('facebook_app_id');