I'm not sure how to title it and I'm not sure if this should happen here or with the path module. I am documenting it here for future reference. If I have an alias of, for example, administrator pointed to user/1 and I then have a URI ending user/1/edit I would like to see user/administrator/edit as the redirected URI. I think this will require work in both modules but maybe just the aliasing module.
Comments
Comment #1
nicholasthompsonwell as long as there is an alias for user/1/edit to user/administrator/edit then Global Redirect should manage it itself...
Of course - it wouldn't be a massive addition to the user.module to check if arg(1) is numeric - if so, redirect to user/[user-name]
Comment #2
Anonymous (not verified) commenteduser/1 was an example it could be node/1 or some taxonomy item. I would like to not have to add an alias for user/1/edit if I have an alias for user/1. I would like to not have to add an alias for node/1/edit if I have an alias for node/1. I'll take a look sometime in the next month or two; as I said, I just wanted to document the idea. If you have thoughts about the matter please feel free to add suggestions.
Comment #3
nicholasthompsonOhhhhhhhhhh I see what you mean now!
Thats a really good idea - partial aliasing... Genius!
In theory - its easy (ie, you take the chunks that are aliased) but in practice I can see this being BLOODY hard to do efficiently... I'll add it to my thinking cap which is rapidly turning into a cauldron...
Comment #4
nicholasthompsonI dont think this is something Global Redirect is capable of...
Comment #5
Anonymous (not verified) commentedAt some point in the near future I'll take another look. As I said I didn't know and wanted to document it. It maybe should even be an additional module.
Comment #6
Coyote commentedI am using the 'me" aliases module on a couple of sites. This causes urls like user/me/whatever to have the "me" part replaced with the user id.
This enables "pretty" urls in menus and links, but the user page gets redirected to an url that shows the uid number instead of the "me"
Comment #7
Anonymous (not verified) commented@Coyote: Did you have a point to make about the issue? It seems you commented in the wrong thread. And I think ppl are working on the path module to do this but I may be mistaken on that part.
Comment #8
Coyote commentedSorry, I must have somehow posted in the wrong thread. My apologies.
Comment #9
nicholasthompsonI've been thinking about this a lot recently... Argument aliasing is out side the scope of this module.
Maybe it could be in the scope of another?