- Status changed to Fixed
4 months ago 10:42pm 12 July 2024
In drupal website we use multilanguage. There language is detected by path. We use domain setting so website has domain prefix.
When using drush command with host, Url::fromRoute returns absolute path and on top adds it with our given host. So we get incorrect url.
To reproduce:
In website enable extra language.
Make language detection by url.
Select domain to determine language with language prefix.
Try drush commands.
In command, when making url with host dont use simply Url:fromRoute->toString() but change toString to getInternalPath, This way we make sure that url path from route name will be internal.
Fixed
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.