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.
For example, I set a path "node/XXX" to "mypage".
Can I replace a path like "node/XXX/edit" to path "mypage/edit" with pathauto module?
Or may be another ways exists. Thanks!
Comments
Comment #1
gregglesOnce or twice people have requested this but the problem is that it creates an enormous amount of aliases in the url_alias table which makes your site relatively slow.
Given that people already experience slowness due to Pathauto creating a lot of aliases, I feel this would be a bad feature to implement. Of course, allowing people to shoot themselves in the foot is not something I necessarily want to get in the way of, so if someone else writes the code then I'd be willing to commit it as long as it did not clutter up the interface (i.e. don't provide a u.i. checkbox for it, make it an option that must be set via the settings.php).
Comment #2
gregglesActually, this specific thing is not possible. Instead see the "me" module: http://drupal.org/project/me
Comment #3
gregglesIf we used progressive disclosure then the UI issues related to this would be so bad, so this is postponed until #273104: Using "progressive disclosure" for alias patterns
The performance issues would still be there, but that's up to each user to decide for themselves...
Comment #4
crossz CreditAttribution: crossz commentedi need this feature.
I need to hide most of the nodes, but I can not disable all the access from others.
So I want to hide the nid.
Same with 'my account'--'edit', here the nid is disclosed as well.
So, how to hide the nid from 'edit' modes?
Thanks,
Comment #5
Francewhoa+1 for this new feature.
I suggest to deactivate this feature by default. And within the UI adding a note about the performance beside it.
In the meantime something similar to this new feature can be done with a combination of 2 modules: url_alter & subpath_alias. Read more at http://drupal.org/node/313411#comment-1801782
Comment #6
Freso CreditAttribution: Freso commentedActually. Because of performance reasons and because different people will have different needs when it comes to having "node/%/foo" aliased, the Subpath Alias module will most likely be a much better fit. (Thank you, Onopoc, for the hint!)
Comment #7
LTech CreditAttribution: LTech commentedThe subpath alias module works for node/edit/. But it isn't working for node/add/content type.
Is there a way I can just make the link add/content type without the word node?
Comment #8
LTech CreditAttribution: LTech commentedhttp://drupal.org/node/331566 was the solution