       url = "/#{url}" if (url.slice 0, 1) isnt '/'
 
       # fallback to root url in case user enter the '/'
-      url = app.root if url == "/"
+      url = Routes.root if url == "/"
 
       for route in @routes
         if route.matcher.test url


    setTimeout =>
      url = window.location.pathname
      url = app.root if url == "/"
      @run url
    , 1



StringUril = require 'theoricus/utils/string_util'
Route = require 'theoricus/core/route'
Routes = require 'app/config/routes'

require ':history'

Factory = null

