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.
Hi,
I installed the module and the poll/pollname/resault generated but the url of user/%/.. still view like user/%/edit and not like users/[username]/edit in default.
example:
the url user/%/edit
is like the same:
users/[username]/edit
but when I click on the edit tab in my user account I go to user/%/edit
How can I change it?
Thanks.
Comments
Comment #1
ntigh52 CreditAttribution: ntigh52 commentedComment #2
Dave ReidThat is because "administration" pages are disabled from subpathauto processing by default, and core's user_admin_paths() defines user/*/edit as an admin path. You can disable that setting in Subpathauto to get user/*/edit paths rewritten.
Comment #3
Dave ReidComment #4
ntigh52 CreditAttribution: ntigh52 commentedThanks a lot! absolutely Status: active » fixed
P.S.
Why "administration" pages are disabled from subpathauto processing by default?
There is a serious issue?
Thanks
Comment #5
pmichelazzoJust a question to get up this situation.
I'm trying to use the solution showed here (user/*/edit) to change the Edit tab address using the pathauto but I always receive the information of user/*/edit is invalid.
I'm trying to change user/*/edit to usuario/*/editar.
Any clue about it?
Thank you!
Comment #6
ntigh52 CreditAttribution: ntigh52 commentedI realized that all the path with "edit" will not generate.
Its not just user/*/edit is also for all the nodes, - like node/139/edit ....
I think that its somthing that cant be change...
But if you will add views or pages under user, like user/($user->uid/my-content, that will genarate to users/$user->name/my-content.
Comment #7.0
(not verified) CreditAttribution: commented1