Hello,
I have an issue here which causes my brain to have a "buffer overflow"

# It sounds simple, but yet it's a hard nut for me.
I need to get just the page name of the current url. For example I would like to redirect
from /aa/bb/cc/1-article.html
to /cat/1-article.html
The original path could also be /aa/bb or /aa/bb/cc/dd -> whatever, I only need to get the last part "1-article.html".
I think it is similar to this issue:
www.selfget.com/forum/redj/387-a-challenging-redirect.html#729 - but this guy had always 3 path level, which doesn't work for me.
I also tried it with the tableselect macro and requestvar (fetch the id from the url and then the alias from the database). But the id in my Joomla installation is not just a number, but for example "2:alias".
Oh, I use Joomla 2.5.18 and ReDJ 1.7.2 Enterprise.
Thank you for any hint
Marcel
By the way: There are many macros concerning the path, like pathltrim and so on. Perhaps there could also be a macro which returns the page name?