remove extra protocol in the link
This commit is contained in:
parent
35903514f5
commit
490a2c6a9e
1 changed files with 2 additions and 2 deletions
|
|
@ -216,7 +216,7 @@ module ApplicationHelper
|
|||
else
|
||||
title = I18n.t 'application.helper.video_title.unknown'
|
||||
end
|
||||
' <a class="video-link" data-host="youtube.com" data-video-id="' + video_id + '" href="http://'+ match_data[0].strip + '" target="_blank">Youtube: ' + title + '</a>'
|
||||
' <a class="video-link" data-host="youtube.com" data-video-id="' + video_id + '" href="'+ match_data[0].strip + '" target="_blank">Youtube: ' + title + '</a>'
|
||||
end
|
||||
return processed_message
|
||||
end
|
||||
|
|
@ -263,7 +263,7 @@ module ApplicationHelper
|
|||
else
|
||||
title = I18n.t 'application.helper.video_title.unknown'
|
||||
end
|
||||
' <a class="video-link" data-host="vimeo.com" data-video-id="' + video_id + '" href="http://' + match_data[0] + '" target="_blank">Vimeo: ' + title + '</a>'
|
||||
' <a class="video-link" data-host="vimeo.com" data-video-id="' + video_id + '" href="' + match_data[0] + '" target="_blank">Vimeo: ' + title + '</a>'
|
||||
end
|
||||
return processed_message
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue