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

Fix share modal iframe url #8738

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Fix share modal iframe url #8738

merged 1 commit into from
Jan 22, 2024

Conversation

cdrini
Copy link
Collaborator

@cdrini cdrini commented Jan 20, 2024

Previously share modals had the wrong url; eg

<iframe frameborder="0" width="165" height="400" src="/works/OL82563W/Harry_Potter_and_the_Philosopher&#39;s_Stone/-/widget"></iframe>
  1. Should have openlibrary.org, of course since this will be pasted in other people's sites
  2. Should not have both the page slug and the /-/ placeholder

Technical

Testing

Tested it creates the right url on testing.

Screenshot

<iframe frameborder="0" width="165" height="400" src="//testing.openlibrary.org/works/OL459469W/Madlenka/widget"></iframe>

Stakeholders

@cdrini cdrini added the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label Jan 20, 2024
@cdrini cdrini marked this pull request as ready for review January 20, 2024 09:12
@scottbarnes scottbarnes self-assigned this Jan 22, 2024
@scottbarnes scottbarnes merged commit bfc63f1 into master Jan 22, 2024
3 checks passed
@scottbarnes scottbarnes deleted the cdrini-patch-5 branch January 22, 2024 21:06
Achorn pushed a commit to Achorn/openlibrary that referenced this pull request Jan 23, 2024
@jimchamp jimchamp removed the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label Apr 2, 2024
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