This did not work properly everytime because the destination URL was saved in a cookie and that can be lost for various reasons. This commit redirects the user to invited topic if it exists.