Skip to content
Snippets Groups Projects

issue/3457651: Remove todo views should expect and store a leading.

1 file
+ 0
4
Compare changes
  • Side-by-side
  • Inline
@@ -1358,8 +1358,6 @@ public function renderText($alter) {
$more_link_path = mb_substr($more_link_path, mb_strlen($base_path));
}
// @todo Views should expect and store a leading /. See
// https://www.drupal.org/node/2423913.
$options = [
'attributes' => [
'class' => [
@@ -1496,8 +1494,6 @@ protected function renderAsLink($alter, $text, $tokens) {
if (empty($alter['url'])) {
if (!parse_url($path, PHP_URL_SCHEME)) {
// @todo Views should expect and store a leading /. See
// https://www.drupal.org/node/2423913.
$alter['url'] = CoreUrl::fromUserInput('/' . ltrim($path, '/'));
}
else {
Loading