Updated parseUrl to handle arrays which fixes the nav