mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
redirect clientside
This commit is contained in:
parent
e46e81a31f
commit
d0fc7663ce
@ -4,6 +4,10 @@
|
||||
User.find(session[:user]) if session[:user]
|
||||
rescue Mongoid::Errors::DocumentNotFound
|
||||
session[:user] = nil
|
||||
redirect_to homepage_path
|
||||
%>
|
||||
<script type="text/javascript">
|
||||
window.location.href="<%= homepage_path %>"
|
||||
</script>
|
||||
<%
|
||||
end
|
||||
%>
|
||||
Loading…
Reference in New Issue
Block a user