I have a footer component that opens a contact us page and the route changes depending if the user is logged in or not - i.e. if they are not logged in it goes straight to the p