Here's the portal:
Go to record has one step, go to related record and it works.
Link is a script which so far has one step, go to related record. Both parameters are identical: related table and show in layout.
Link button brings me to the wrong layout and performs a search with this result:
"No records match this criteria:"