Group path with ids instead of names


this is maybe a dumb question but I can’t find any resources on how to get the path of a group not as names with slashes but as IDs with slashes. Since the names often change and having a slash in a name is possible the paths with the group names are pretty much unusable for me…

Can I configure that anywhere that the standard way of representing a Path is concatenating the group ids with slashes?

Thanks in advance!

Has anyone an idea for this?