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 have many drupal installs that do not live at "/", so to speak. So hard-coded relative links to "/admin/settings/ip_login", for example, are broken.
In D6 (and I believe also D7), base_path() should be used instead of hard-coding a "/".
Attached is a tested, working patch for the 6.x-2.x branch (this is the version I'm using).
I also noticed that in the master branch, ip_login.module hard-codes "/admin..." on line 67:
array('@permissions-link' => '/admin/user/permissions#module-ip_login')
I'll leave the master branch to be patched by the D7 experienced folks (if needed).
Comment | File | Size | Author |
---|---|---|---|
ip_login_base_path_fix_6.x-2.x.patch | 541 bytes | claar | |
Comments
Comment #2
Jim Kirkpatrick CreditAttribution: Jim Kirkpatrick commentedThanks for the report and patch... Been a busy man but will commit something similar ASAP.