mit-cml / appinventor-sources

MIT App Inventor Public Open Source
http://appinventor.mit.edu/appinventor-sources/
Apache License 2.0
1.5k stars 2.08k forks source link

Use host URL, including scheme, for companion download URL #3253

Closed ewpatton closed 3 weeks ago

ewpatton commented 3 weeks ago

Change-Id: I49c1cef27b8daa226479e2b9cc6a609a43674e7c

General items:

For all other changes:

What does this PR accomplish?

This PR uses the base URL for computing the companion download link in the About the Companion dialog. This fixes #3190 by ensuring that HTTPS downloads of the companion are respected with App Inventor is served over HTTPS. On Chrome, using the HTTP URL when serving over HTTPS will prevent the download from happening.