I've forced the site to use https:// through .htaccess
Now I need to force these links to bypass ssl so that they load like sub.domain.com -
Right now the code looks like as follows but when I click on a link it opens with 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 %>
Any help?