summaryrefslogtreecommitdiff
path: root/elm/DocEdit.elm
diff options
context:
space:
mode:
Diffstat (limited to 'elm/DocEdit.elm')
-rw-r--r--elm/DocEdit.elm2
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/DocEdit.elm b/elm/DocEdit.elm
index 3fad1f8f..e4282213 100644
--- a/elm/DocEdit.elm
+++ b/elm/DocEdit.elm
@@ -73,7 +73,7 @@ update msg model =
let body = GD.encode (encode model)
in ({ model | state = Api.Loading }, Api.post "/d/edit.json" body Submitted)
- Submitted (GApi.Changed id rev) -> (model, load <| "/d" ++ String.fromInt id ++ "." ++ String.fromInt rev)
+ Submitted (GApi.Redirect s) -> (model, load s)
Submitted r -> ({ model | state = Api.Error r }, Cmd.none)