Auto URL Aliasing for Custom Menu Paths with Term Id Here is my problem.


I have created a view with path as groups/% where % is a term id.
Now, i would like to create auto aliases for all groups/% with % as a term name.


Ideally i would like to add this alias path on creation of a term related to particular vocabulary. Is there any module that will do this out of the box ?

PATH AUTO MODULE: As far as i know it allows to set patterns only for taxonomy term paths and node paths for different content types.

But, how to set patterns for custom menu paths ?
I am not sure whether we should take this way or not but I found this:

We can save new path alias using path_save() function. 

Here is how I managed it:

I called the function after submission of node or group node.

Then I called a custom function and fetch the real URL of the node i.e in your case it will be group/tid.

Now I retrived term name from term id and created new alias with term name.

Called path_save() function with necessary information.