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.
I'm using http://localhost/csp-torchbox/web/core/install.php/admin/config/content/... to install my site, and the imported config includes honeypot module.
The install message shown by hook_install() contains a broken URL:
> http://localhost/my-site/core/install.php/admin/config/content/honeypot
I would suggest not showing the message at all when the module is installed as part of a site installation.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2803839-4-use-route-in-install-message.patch | 775 bytes | TR |
Comments
Comment #2
imperator_99 CreditAttribution: imperator_99 commentedI'm getting the same error using version 8.x-1.27. The problem seems to be in using 'base://' prefix for the URL, which seems to pick up the most recent URL (in this case, /core/install.php).
Comment #3
TR CreditAttribution: TR commentedWell really the right way to do it in D8/D9 is to use the route instead of trying to construct a complete absolute path.
Can you test this to see if it fixes your problem?
Comment #4
TR CreditAttribution: TR commentedSorry, I made a stupid syntax error. Here's the correct patch.
Comment #6
TR CreditAttribution: TR commentedCommitted.