Skip to content

Website HR Recruitment - change redirects to HTTPS? #2

@FredericoCoelhoNunes

Description

@FredericoCoelhoNunes

I am using the website_hr_recruitment module, and trying to expose the /jobs page using an iframe on a different webpage (https://my.jobs.com, in this example).

However, when I click the Apply button (for example on /jobs/apply/15) I am redirected to an HTTP link, which then throws the following error:

Mixed Content: The page at 'https://my.jobs.com/' was loaded over HTTPS, but requested an insecure resource 'http://hidden.backend.com/jobs/apply/my-job-15'. This request has been blocked; the content must be served over HTTPS.

My first question is: is it possible to configure Odoo to do this redirect using HTTPS.
And my second question: where exactly is my job ID (15) converted to the slug+ID in the URL? My question relates to the following line of code:

@http.route('/jobs/apply/<model("hr.job"):job>', type='http', auth="public", website=True)

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions