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

Don't include version in sul-embed iframe URL when purl is base url #1137

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

lwrubel
Copy link
Contributor

@lwrubel lwrubel commented Aug 15, 2024

Resolves #1135.

Updates embed iframe URL and embed code to use base URL when head version.

Andrew tested and approved.

@lwrubel
Copy link
Contributor Author

lwrubel commented Aug 15, 2024

@andrewjbtw would you like to test this?

@andrewjbtw
Copy link

Yes - is it already in stage?

@lwrubel lwrubel changed the title No version in sul-embed iframe URL when head [HOLD] No version in sul-embed iframe URL when head Aug 15, 2024
@lwrubel
Copy link
Contributor Author

lwrubel commented Aug 15, 2024

Requires a tweak so that if the URL is a head version with a version in the URL, still include that in the embed URL. The presence or lack of a version in the URL should be the same as what's in the embed URL.

@lwrubel lwrubel changed the title [HOLD] No version in sul-embed iframe URL when head [HOLD] No version in sul-embed iframe URL when purl is base url Aug 15, 2024
@lwrubel lwrubel changed the title [HOLD] No version in sul-embed iframe URL when purl is base url Don't include version in sul-embed iframe URL when purl is base url Aug 16, 2024
@justinlittman justinlittman merged commit 405af5d into main Aug 16, 2024
3 checks passed
@justinlittman justinlittman deleted the t1135-embed-url branch August 16, 2024 12:35
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.

Embed code should not use versioned URL when purl URL is not versioned
3 participants