(D7) When a user sends a friend's invitation to another user (User Relationships) the other user, once he logs in, sees a green message that informs him so-and-so sent him a friends request. There is a link that takes the viewer (requestee) to example.com/relationships/received.
However, I have created a view that displays the received requests in a different format. Of course the page view has a different path and I want the user to be redirected to: user/[uid of the requestee]/relationships/received and the requestee only to be allowed to see the requests he received.
I have created a rule (Rules module) as follows:
- Event: A user relationship has been requested
- Condition: Relationship has type (friend)
- Action: Page redirect (user/[requestee:uid]/relationships/received)
[requestee:uid] is in the allowed replacement patterns but it doesn't work. Clicking on the link still takes the viewer to the original path.
What do I do wrong? :)