                 :visibility visibility
                 :password password}
        :handler (fn [data]
-                  (if (= "error" (:status data))
-                    (swap! state assoc :message (keyword (:message data)))
+                  (if (and (= "error" (:status data)) (= (:message data) "page/Evidenceerror"))
+                    (swap! state assoc :message (keyword (:message data))
+                           :page {:id id
+                                  :tag tags
+                                  :password password
+                                  :visibility "public"})
                     (navigate-to next-url)
                     )
                   )})))

      [:div.form-group
       [:button {:class    "btn btn-primary"
                 :on-click #(do
                             (.preventDefault %)
                             (save-settings state (str "/page/preview/" id)))
                 :disabled (and (empty? @password-atom)
                                (= @visibility-atom "password"))}
        (t :page/Save)]]]]))

        new-tag-atom (cursor state [:new-tag])
        password-atom (cursor state [:page :password])]
    [:div {:id "page-settings"}

     [ph/edit-page-header (t :page/Settings ": " name)]
     [ph/edit-page-buttons id :settings (fn [next-url] (save-settings state next-url))]
     [:div {:class "panel page-panel" :id "settings-panel"}
      (when-not (clojure.string/blank? @(cursor state [:message]))
        [:div.alert.alert-warning (t @(cursor state [:message])) ])
      [:div.form-group
       [:label {:for "page-tags"}
        (t :page/Pagetags)]
