redirecting tasks to task permalink page, but having trouble loading task