Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make path to openseadragon images protocol relative #37

Closed

Conversation

antbrown
Copy link

GitHub Issue: Islandora/documentation#1504

What does this Pull Request do?

Adds the same file_url_transform_relative() from #25 to openseadragon_iiif_manifest_block.

What's new

Wrap file_create_url() with file_url_transform_relative().

How should this be tested?

Visit a Repository Item page on a site served by https and observe mixed content warnings in browser console. Apply patch. Reload page and observe no mixed content warnings.

Additional Notes:

This may be superseded by #26 - but we have found it useful as a workaround for now.

Interested parties

@Islandora/8-x-committers

@elizoller
Copy link
Member

My understanding is that #26 means that the JS library is being loaded from a CDN. This PR would revert that change, which would probably not want to do. If we want to provide the option for folks to use a locally hosted library, then I think it would need to be a configuration option that is added to allow a person to switch between CDN and a locally hosted library and if they chose locally hosted, then yes the library URL should be the same protocol.

@bseeger bseeger changed the base branch from 8.x-1.x to 2.x October 5, 2021 17:53
@rosiel rosiel closed this Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants