 
     $rootScope.constants.users = {}
 
-    # Initialize configuration
-    $gmConfig.initialize(localconfig)
-
-    # Configure on init a default host and scheme for api urls.
-    $gmUrls.setHost("api", $gmConfig.get("host"), $gmConfig.get("scheme"))
-
-
-    $data.loadSiteInfo($rootScope).then (sitedata) ->
-        $log.debug "Site data:", sitedata
-
-    if not $gmConfig.get("debug")
-        $log.debug = ->
-
-    $rootScope.baseUrls =
+assignNavegationUrls = ($rootScope) ->
+    conditionalUrl = (url, raw) ->
+        return url if raw
+        return "/##{url}"
+
+    $rootScope.baseUrls = {
         projects: "/"
         backlog: "/project/%s/backlog"
         kanban: "/project/%s/kanban"


    $gmUrlsProvider.setUrls("api", apiUrls)


init = ($rootScope, $location, $gmStorage, $gmAuth, $gmUrls, $i18next, $gmConfig, localconfig, $data, $log, $favico) ->
    $rootScope.pageTitle = ""
    $rootScope.auth = $gmAuth.getUser()

    $rootScope.constants = {}

    $rootScope.constants.usStatuses = {}

        invitation: "/invitation/%s"
        admin: "/project/%s/admin/%s"
        attachment: "/media/attachment-files/%s/%s/%s"
    }

    $rootScope.urls =
        projectsUrl: ->
            return '/#/'
