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.
If you use this module to change the /user
path to /admin
you'll get locked out of many admin pages.
I think this is because Drupal interprets URLs like /admin/modules
as looking for a user with an ID of modules
.
This module could protect against this situation by including admin
on a blacklist of words you can't rename it as, and throwing an error if somebody tries to rename it as that word.
There might be other words that cause issues that I haven't seen yet (like, I wonder what would happen if you rename all admin paths to /user
).
Comments
Comment #2
slootjes CreditAttribution: slootjes at Media.Monks commentedGood point, will pick this up in the 8.x-2.x branch.
Comment #3
slootjes CreditAttribution: slootjes at Media.Monks commentedFeature + tests added.
Comment #4
slootjes CreditAttribution: slootjes at Media.Monks commented