0

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?

Vaibhav
  • 6,620
  • 11
  • 47
  • 72
Andrea
  • 23
  • 7

1 Answers1

0

Hope this link could help. I'm not sure link_to's option has :protocal, although I can't find it at here

Community
  • 1
  • 1
halfelf
  • 9,737
  • 13
  • 54
  • 63