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 UV iframe embed scenario #416

Merged
merged 1 commit into from
Nov 25, 2024
Merged

Fix UV iframe embed scenario #416

merged 1 commit into from
Nov 25, 2024

Conversation

DanOlson
Copy link
Contributor

When we migrated UV to the CDN, we stopped serving UV assets from /public, which ended up breaking the iframe use case. This revives it by routing to a controller and rendering a view template. We're using a route & view rather than a static file in /public because we want to initialize UV with the same config options in both places which we can do with a partial. Additionally, if we were to serve the config as a url via a query parameter on the iframe src, UV ends up loading the attribution pop up before the config loads, which is not the exerience we want.

When we migrated UV to the CDN, we stopped serving UV assets from
/public, which ended up breaking the iframe use case. This revives
it by routing to a controller and rendering a view template. We're
using a route & view rather than a static file in /public because
we want to initialize UV with the same config options in both places
which we can do with a partial. Additionally, if we were to serve
the config as a url via a query parameter on the iframe src, UV ends
up loading the attribution pop up before the config loads, which is
not the exerience we want.
@swandog30 swandog30 merged commit 7ce4ae4 into develop Nov 25, 2024
1 check passed
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.

2 participants