Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In token_help, there is this code:
if ($route_name == 'help.page.token') {
$current_url = Url::fromRoute('<current>');
if ($current_url->toString() != 'admin/help/token') {
// Because system_modules() executes hook_help() for each module to 'test'
// if they will return anything, but not actually display it, we want to
// return a TRUE value if this is not actually the help page.
return TRUE;
}
Since my site is located at michelle.dev/d8b6, $current_url->toString() returns "/d8b6/admin/help/token" which makes it just return TRUE.
I am running the beta 6 of core but I am fairly sure I'm using the latest Token dev snapshot.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2438723-token-help.patch | 669 bytes | TR |
Comments
Comment #1
TR CreditAttribution: TR commentedAttached patch fixes this problem. It's a trivial fix, the code is just missing the leading '/' in the path so the != comparison will always be true.
Comment #2
TR CreditAttribution: TR commentedAlso note, this happens whether or not your site is in a subdirectory.
Comment #3
BerdirLooks ok, could possibly also be implemented with the route match instead.
Comment #4
Dave ReidCommitted to 8.x-1.x