Skip to content

Commit

Permalink
Fix URLs
Browse files Browse the repository at this point in the history
Signed-off-by: Alban Gruin <alban.gruin@univ-tlse3.fr>
  • Loading branch information
agrn committed Jun 29, 2020
1 parent 22f7f8f commit 15bad51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app/learnocaml_exercise_main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ open Js_utils
open Lwt.Infix
open Learnocaml_common
open Learnocaml_data
open Learnocaml_config

module H = Tyxml_js.Html

Expand Down Expand Up @@ -197,7 +198,7 @@ let () =
begin toolbar_button
~icon: "list" [%i"Exercises"] @@ fun () ->
Dom_html.window##.location##assign
(Js.string "/index.html#activity=exercises") ;
(Js.string (api_server ^ "/index.html#activity=exercises")) ;
Lwt.return ()
end ;
let messages = Tyxml_js.Html5.ul [] in
Expand Down
3 changes: 2 additions & 1 deletion src/app/learnocaml_playground_main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ open Js_utils
open Lwt.Infix
open Learnocaml_common
open Learnocaml_data
open Learnocaml_config

module H = Tyxml_js.Html

Expand Down Expand Up @@ -69,7 +70,7 @@ let main () =
begin toolbar_button
~icon: "list" [%i"Playground"] @@ fun () ->
Dom_html.window##.location##assign
(Js.string "/index.html#activity=playground") ;
(Js.string (api_server ^ "/index.html#activity=playground")) ;
Lwt.return ()
end ;
let typecheck = typecheck top ace editor in
Expand Down

0 comments on commit 15bad51

Please sign in to comment.