 
                 # 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}")

                else
                  paths = paths.splice(0, isAtState)

              # build each route
              for state in neededUrls


                      Apollos.Router.redirect cleanedPath
                      return

                  Apollos.Router.redirect encodeURI(_stateUrl)
                  oldRoute = Apollos.Router.current()

