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

URLgenerator broken for Drupal installed in a subdirectory - doesn't have a way to get a Drupal path

$
0
0

When I install Drupal 8 in s subdirectory and use the URLgenerator to create a path with the subdir name repeated 2x:

like: http://127.0.0.1:8082/subdir-d8/subdir-d8/admin/structure/views/add

The generator is being called like on a route name (string):

$this->generator->generate($this->getRouteName());

the generator was pulled from the DIC container in a plugin create() method:

$container->get('url_generator')

This is causing test fails in #1981644: Figure out how to deal with 'title/title callback' and blocking progress on other issues. That patch can be used to reproduce the issue.

Viewing all articles
Browse latest Browse all 313940

Trending Articles