build proper link to subtopic in frontend