i have a test user called "buyer". he has a profil with the tabs: view - edit - orders - files i set pathauto for user to: user/[user:name] when i look at the tab links the as followed:

view: domain/user/buyer edit: domain/user/82/edit

question: why is that? if i call the link domain/user/buyer/edit by hand, i get "You are not authorized to access this page."

any ideas?

1 Answer 1


It is because path aliases are for a single path, so the path alias user/[user:name] is only for user/82. If you want path aliases for all those other pages, they have to be added separately.

And because they are not pages that are covered by the pathauto module, you cannot use it for those pages.

You can manually add aliases at admin/config/search/path/add but because you can't use tokens there you would have to add aliases manually for each user (which is ridiculous).

The only module I know that can help you out is http://drupal.org/project/subpathauto

The equivalent module for drupal 6 is http://drupal.org/project/subpath_alias

Those modules aim to allow you to do what you desire.

It seems there is currently a bug in the subpathauto module though that is breaking user aliases. See http://drupal.org/node/1851102

I just tested 7.x-1.2 and it is working correctly.

You can get 1.2 from here - http://drupal.org/node/1416736

  • ok thank you rooby, i have had installed subpathauto once but after a closer look the links now as i wish: edit: domain/user/buyer/edit one problem remains, as i click or type the url i get "Access denied" is this common?
    – ericdavis
    Apr 21, 2013 at 13:10
  • What is the domain part you are adding at the start? Do you mean yoursite.com/domain/user/buyer/edit or yoursite.com/user/buyer/edit ? - If the former, why are you adding domain?
    – rooby
    Apr 21, 2013 at 13:13
  • i mean yoursite.com/user/buyer/edit
    – ericdavis
    Apr 21, 2013 at 13:23
  • Just tried it myself with subpathauto and it seems to work sometimes but sometimes I get access denied. Strange.
    – rooby
    Apr 21, 2013 at 13:28
  • ok i see. this is what i found on that topic, in the bug list there is something about that behaviour: drupal.org/project/issues/…
    – ericdavis
    Apr 21, 2013 at 13:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.