# frozen_string_literal: true

module SurveysUrlHelper
  def course_survey_url(notification)
    "#{survey_url(notification.survey)}?course_slug=#{notification.course.slug.gsub('&', '%26')}"
  end
end

# frozen_string_literal: true

module SurveysUrlHelper
  def course_survey_url(notification)
    slug = notification.course.slug.gsub('&', '%26')
    "https://#{survey_url(notification.survey)}?course_slug=#{slug}"
  end
end

Add https to survey link
Add https to survey link
