diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ddd8f83..8d38e8b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -479,7 +479,7 @@ module ApplicationHelper def get_target(link) target = "_blank" - if link.nil? + if !link.nil? link = link.split("?").first temp_url = URI.parse(link) if temp_url.host.nil?