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.
Hi,
When setting the Solr host to "localhost" (default setting), the URL for the Solr server gets overridden with the base URL of the Drupal installation like so http://drupal.localhost:8983/solr/ instead of the intended and correct http://localhost:8983/solr/.
I'm not sure whether this is some misconfiguration on my side so I'm marking this as a support request for the time being.
Best regards,
Frank
Comments
Comment #1
Frank Ralf CreditAttribution: Frank Ralf commentedI think I found the culprit in includes/service.inc. The getServerLink() function shortcircuits to the server URI if host is set to "localhost":
Frank
Comment #2
drunken monkeyThat's just for presentational purposes, since displaying "localhost" there won't lead to a correct link in most cases. Internally, "localhost" will be used, so this shouldn't cause any problems (except, it seems, some confusion – had this issue reported a couple of times now).
Comment #3
Frank Ralf CreditAttribution: Frank Ralf commentedThanks for the explanation.
Comment #5
codium CreditAttribution: codium as a volunteer commentedPlease remove it. It's misleading.
Comment #6
donquixote CreditAttribution: donquixote as a volunteer commentedYes, this is definitely confusing. I spent some time trying to figure out what is going wrong.
In my case, the modified link does not lead anywhere either.
But at least the localhost link is technically correct. So that one shall be displayed, imo.