It works. But I found a bug testing that one. On topic change, we should reset the permalink parameter (because the id's are unique over all topics and a category id in 'ech' does not exist in any other topic).

So this needs more.