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

bryanbraun created an issue. See original summary.

slootjes’s picture

Good point, will pick this up in the 8.x-2.x branch.

slootjes’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev
Status: Active » Fixed

Feature + tests added.

slootjes’s picture

Status: Fixed » Closed (fixed)