Seems to be the only way to make correct urls in related data links...

in case the related element is not in main table but in a joined group. 
Tries to resolve issue https://github.com/Fabrik/fabrik/issues/531
and is obviously better than initial possible "solution" https://github.com/Fabrik/fabrik/pull/537

BTW - I will create the same for F31