Links to content overview on main table are broken

Created on 8 March 2024, 4 months ago

Problem/Motivation

The links are rendered like this: http://DOMAINhttp//DOMAIN/admin/content?type=CONTENTTYPE

Proposed resolution

In getUtilizationTabularData, change these lines:

      $link = Url::fromRoute('system.admin_content', ['type' => $type['bundle']])->toString();
      $http_host = \Drupal::request()->getSchemeAndHttpHost();
      $header[$name] = $this->t('<a href="@link">@label</a>', [
        '@link' => $http_host . $link,
        '@label' => $header_label,
      ]);

to these:

      $link = Url::fromRoute('system.admin_content', ['type' => $type['bundle']])->setAbsolute()->toString();
      $header[$name] = $this->t('<a href="@link">@label</a>', [
        '@link' => $link,
        '@label' => $header_label,
      ]);
πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium beerendlauwers

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024