ATM 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
(cherry picked from commit 808c3616e79c3363dd5f8e2897ee72ebeeda9c71)
code style

things that should be in separate lines
Now we should get exactly what we need for correct related data links in form/details
Not very sure about $qskey but I left it in place
Merge
Merge branch 'joomla3' of git://github.com/Fabrik/fabrik into joomla3_f31_form_related_links
Correcting reldatalinks - code style & cleanup
Merge pull request #1017 from jaanusnurmoja/joomla3_f31_form_related_links

J3/F3.1 make correct urls in related data links...