Comment
Not applicable

If the target record is opened within portal, I think it should work the same way.

However if target record is opened on platform, then it won't work as the Portal widget macro is not rendered there. Unfortunately I don't have any readymade solution for this use case, maybe you could experiment with a jelly-based macro on platform side, but I'm not sure if it would do the trick.