Developer "Apply" button leads to the "Backend Developer, Edge" position application form
This is most probably because of:
def open_jobs
data.jobs.select(&:open).sort_by(&:title)
end
def job_for_current_page
open_jobs.detect do |job|
job.description.start_with?("/#{File.dirname(current_page.request_path)}")
end
end
Solutions:
- Rename "Backend Developer, Edge" to "Developer, Edge" (weak)
- Sort jobs by
description
instead oftitle
(weak because/jobs/developer-ci/
comes before/jobs/developer/
) - Change
job.description.start_with?("/#{File.dirname(current_page.request_path)}")
tojob.description == "/#{File.dirname(current_page.request_path)}"
=> probably the best and more robust solution