fix login button
This commit is contained in:
parent
a156669b6a
commit
d7f56ecfd0
5 changed files with 13 additions and 8 deletions
|
|
@ -3,8 +3,8 @@ let f thread_view thread_id request =
|
|||
<%s! thread_view %>
|
||||
% begin match Dream.session "nick" request with
|
||||
% | None ->
|
||||
% let redirect = Dream.to_percent_encoded (Format.sprintf "redirect=/thread/%s" thread_id) in
|
||||
<a href="/login?<%s redirect%>">Login to reply!</a>
|
||||
% let redirect = Dream.to_percent_encoded (Format.sprintf "/thread/%s" thread_id) in
|
||||
<a href="/login?redirect=<%s redirect%>">Login to reply!</a>
|
||||
% | Some _ ->
|
||||
<div class="post-form">
|
||||
<%s! Dream.form_tag ~action:( Format.sprintf "/thread/%s" thread_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue