Problem/Motivation
Currently the ns.basePath
has a trailing slash which is causing double slash on including assets like config.js, en.js files like http://d7/sites/all/modules/contrib/h5p/modules/h5peditor/h5peditor//ckeditor/config.js?t=F7J9
. This causes issues when we have redirect module as they try to redirect to cleaned up/ correct URL.
Proposed resolution
Remove the trailing slash so that the asset get correct URL for the first time.
Remaining tasks
User interface changes
Original report
While editing the content type created using H5P module, some of the files are being loaded under non-secure protocol in https sites, which is causing the mixed . PFA screeenshot(issue)
Please follow these steps to replicate the issue:
- Select the content type “Interactive content"
- Type in the title of the page
- Under “ Content type ” use one content type( For ex: Multiple Choice).
- It then gives you a form to fill in with the questions and the answers but I am not able to type in to the text fields.
By this way, you can able to see the mixed content error in the console.
Comment | File | Size | Author |
---|---|---|---|
#13 | fix js url-2908218-13.patch | 1.19 KB | Noor Eldin Essam |
Comments
Comment #2
icc CreditAttribution: icc commentedHi,
Could you please open your browser's console(Ctrl+Shift+J in Chrome) and double check the values of the Drupal.settings.basePath variable?
I'm suspecting you base URL may contain the wrong protocol for some reason. If you haven't set this your self it may be a module doing it.
Comment #3
vijaycs85Comment #4
vijaycs85Here is the patch
Comment #5
sidharthapThank you #vijaycs85
#4 works for me.
Comment #6
imkartik CreditAttribution: imkartik at TATA Consultancy Services for Pfizer, Inc. commentedThe patch looks good. Changing the status for this issue.
Comment #7
imkartik CreditAttribution: imkartik at TATA Consultancy Services for Pfizer, Inc. commentedThe patch looks good. Changing the status for this issue.
Comment #8
icc CreditAttribution: icc commentedI've created an issue for adding the patch to the next version of the module: HFP-1524
Comment #9
vijaycs85Thanks @icc!
Comment #10
rajeev_drupal CreditAttribution: rajeev_drupal at TATA Consultancy Services for Pfizer, Inc. commentedWe have faced this issue on one of our production site, and this patch is working well for that issue.
Thanks @vijaycs85
Comment #11
RajamSethuraj CreditAttribution: RajamSethuraj commentedThanks for the help. Issue was fixed.
Comment #13
Noor Eldin EssamFix issue for js library url