Fix login redirect for existing RS auth #180

Merged
raucao merged 1 commits from bugfix/178-rs_login_redirect into master 2024-03-06 21:06:28 +00:00

View File

@ -1,6 +1,7 @@
<%
# TODO remove when https://github.com/hotwired/turbo/issues/203 is fixed
enable_turbo = !session[:user_return_to] || !session[:user_return_to].match?('/discourse/connect')
enable_turbo = session[:user_return_to].blank? ||
['/discourse/connect', '/rs/oauth'].none? { |s| session[:user_return_to].match(s) }
%>
<%= render HeaderCompactComponent.new(title: "Log in") %>