fixed the bug to retrieve the topic name from the url