fixing issue navigating from discussion to index page