Open
Description
Package
next (Drupal module)
Describe the feature request
\Drupal\next\Controller\NextSiteEntityController::environmentVariables
hardcodes the paths /admin/config/services/consumer
. This path should be retrieved using a URL object and the routing system, in case it ever changes.
Describe the solution you'd like
$path = Url::fromRoute('entity.consumer.collection')->toString();
$variables += [
'authentication_bearer' => '# Authentication',
'DRUPAL_CLIENT_ID' => 'Retrieve this from ' . $path,
'DRUPAL_CLIENT_SECRET' => 'Retrieve this from ' . $path,
];