Getting redirected to home page on viewing Course directory or Single Course or My Courses section