pulls pathname from nav bar for firebase storage