- Issue created by @altercat
- 🇷🇺Russia creozavr
Hello, I have same problem. How do you fix this, could you tell?
Same problem.
I make it work replacing$route_name = $this->pathMatcher->isFrontPage() ? '<front>' : '<current>'; $type = $this->getDerivativeId(); $links = $this->languageManager->getLanguageSwitchLinks( $type, Url::fromRoute($route_name) );
with
$type = $this->getDerivativeId(); $route_match = \Drupal::routeMatch(); $url = $route_match->getRouteObject() ? Url::fromRouteMatch($route_match) : Url::fromRoute('<front>'); $links = $this->languageManager->getLanguageSwitchLinks( $type, $url );
in src/Plugin/Block/LangDropBootstrapBlock.php
- Assigned to danrod
- 🇨🇦Canada danrod Ottawa
Thanks, It is already merged in the 8.x-1.x- branch, I will create a new release soon: https://www.drupal.org/project/languages_dropdown/releases/8.x-1.x-dev →
- Status changed to Fixed
over 1 year ago 3:20pm 1 August 2023 Automatically closed - issue fixed for 2 weeks with no activity.