Skip to content

Commit

Permalink
Now use https in link_to action
Browse files Browse the repository at this point in the history
  • Loading branch information
bricesanchez committed Sep 7, 2018
1 parent c018572 commit cd11d95
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def link_to
end

# web address link
@web_address_text = "http://"
@web_address_text = params[:current_link] if params[:current_link].to_s =~ /^http:\/\//
@web_address_text = "https://"
@web_address_text = params[:current_link] if params[:current_link].to_s =~ /^https:\/\//
@web_address_target_blank = (params[:target_blank] == "true")

# mailto link
Expand All @@ -45,8 +45,8 @@ def link_to
@page_area_selected = (params[:paginating] == "your_page")
@resource_area_selected = (params[:paginating] == "resource_file")
else
@page_area_selected = (!is_resource_link and @web_address_text == "http://" and @email_address_text.blank?)
@web_address_area_selected = (@web_address_text != "http://")
@page_area_selected = (!is_resource_link and @web_address_text == "https://" and @email_address_text.blank?)
@web_address_area_selected = (@web_address_text != "https://")
@email_address_area_selected = @email_address_text.present?
@resource_area_selected = is_resource_link
end
Expand Down

0 comments on commit cd11d95

Please sign in to comment.