Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 300544

Route should be used instead of hardcoded "/admin" link

$
0
0

In the workflows list builder, the "empty" text has a link to /admin/modules#module-content-moderation which does not work if you have Drupal installed in a subdirectory or if you have a language prefix on your site.

The proper way to link to an internal URL is with a route, like all the other list builder use..., so in this case Url::fromRoute('system.modules_list', [], ['fragment' => 'module-content-moderation'])->toString() works.


Viewing all articles
Browse latest Browse all 300544

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>