Hello, I have an issue which I'm thinking you might be able to help with.
Basically, views has a bug kind of thing where if you use a Node id argument, it bumps the node id from the middle of a page path to the end.
Ex.
Without Nid argument:
node/5/stuff
With Nid argument:
node/5/stuff/5
My question is, could a feature be added to extended path alias or sub_path alias to remove that trailing /5 if there is already a /5 present?
While at the same time doing its thing to convert the path?
Comments
Comment #1
rdeboerHi Trunkhorn... I am willing to help but Extended Path Aliases is not really the place to fix Views' problems...
Some paths legitimately contain two id's (eg nodes with revisions) so it's not as straighforward as it may seem.
Comment #2
Trunkhorn commentedI totally agree about the first part, about it not being the place, but merlin marked it as won't fix in that issue, so the only thing I could think of was some kind of url altering.
I definitely agree about it not being straightforward as well. I'm guessing that Extended Path Aliases wouldn't be able to tell if something were a view or not and probably just alters any path correctly.
It might not be the direction you'd want to go, but maybe a user could create specific extended path aliases for some situations... something that would have to be set by the user so it wouldn't effect users who don't have this problem.
For example, if the user could set every path that has this node/%/stuff to not display a trailing nid.
I don't know. It is something I can live with, but wish it could be fixed somehow. It doesn't hurt functionality.
Thanks for checking it out.
Comment #3
rdeboerHi Trunkhorn,
I have been toying with the idea to allow the administrator of Extended Path Aliases to set up conversion rules, possibly using regular expressions. Will keep this in the back of my mind and revisit later.
Rik
Comment #4
rdeboerNo longer supporting D6.