Issues in sub group boards have the incorrect link

Summary

When using group level boards in sub groups issue links do not take the sub group into account.

Steps to reproduce

Example Project

https://gitlab.com/groups/Project-FiFo/DalmatinerDB/boards

What is the current bug behavior?

The link only uses the SubGroup in the URL.

What is the expected correct behavior?

The link correctly consists of super and subgroups.

Results of GitLab environment info

This is on gitlab.com