forked from saurabh/orbit4-5
small fix
This commit is contained in:
parent
179a14d717
commit
eeebed8d7b
|
@ -478,10 +478,10 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def get_target(link)
|
||||
target = "_blank"
|
||||
if link.nil?
|
||||
link = link.split("?").first
|
||||
temp_url = URI.parse(link)
|
||||
target = "_blank"
|
||||
if temp_url.host.nil?
|
||||
target = "_self"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue