diff --git a/src/babillard_page.eml.html b/src/babillard_page.eml.html index ddaffba..7baa444 100644 --- a/src/babillard_page.eml.html +++ b/src/babillard_page.eml.html @@ -1,4 +1,11 @@ let f request = + +% let redirect = Dream.to_percent_encoded "/new_thread" in +% let new_thread_url = +% if Option.is_none @@ Dream.session "nick" request then +% Format.sprintf "/login?redirect=%s" redirect +% else "/new_thread" +% in