Is there a way to hash the user id within the url?

Example

www.mysite.com/user/h12sfsdc

instead of:
www.mysite.com/user/2

Comments

stevenc’s picture

I can't think of why you couldn't simply use URL Aliases.

You would need custom code to create the aliases (unless you do it by hand). The regular Path module doesn't provide functionality or tokens for this, but you can easily create write a hook_user function to do it.

Reference:
http://api.drupal.org/api/function/hook_user

If you have a bunch of existing users to add aliases for, use the same code to create a 1-time batch update.

---------------------------------
Steven Wright

Slalom

fuzzyjared’s picture

that could work... I just wish there was a cleaner method. Aliasing makes me a bit nervous as in the past I have had issues with url aliases and that could be detrimental.

I have though about doing this in a number of different ways. But this might be the best option.