                  (js->clj js/pageConfig :keywordize-keys true))
           page-name (:page-name conf)]
       (swap! config merge conf)
-      (when (nil? history)
-        ;; (when page-name
-        ;;   (set-start-page page-name))
-        (init-history)
-        ;; (setup-history page-name)
-        ;; (set! (.-title js/document) (get-title))
-        )
+      (init-history)
       (r/render-component (body)
                           (.' js/document getElementById
                               (:main-div @config))))))

  (write-file (path-join dir (:css-file @config))
              (read-css)))

(defn as-relative [f]
  (clojure.string/replace f #"^/" ""))

;;; Main entry points


                        :main-content v1
                        :title title)))
    :set-page (do (secretary/dispatch! v1)
                  (assoc state :page-name v1))
    :goto-page (do
                 (when r/is-client
                   (.setToken history v1 false)
