 
                 # rebuild the path array
                 route = encodeURI(route.join("/"))
-
 
                 # if there is not already a path for this url lets make one
                 if Apollos.Router.isPath("#{state.name}")

                  if window.location.search
                    stateUrl += window.location.search

                  # Apollos.Router.redirect encodeURI(stateUrl)

                  return


                  neededUrls.push obj



              paths = current.split("/")
              paths = paths.filter Boolean

