.htaccess を介してサイトに https:// を使用するように強制しました
これらのリンクが ssl をバイパスして、sub.domain.com のように読み込まれるようにする必要があります。
現在、コードは次のようになっていますが、リンクをクリックすると https:// で開きます
<% link = "" %>
<% if user.external_link.present? %>
<% link = user.external_link %>
<% else %>
<% link = root_url(:subdomain => user.subdomain, :port => 80) %>
<% end %>
<%= link_to link, :target => "_blank" do %>
何か助けはありますか?