(bug fix)-topic page gets reloaded - permalink bug fix