Fix navbar. Now uses pub._id rather than slug