Skip to content

Commit

Permalink
Use polymorphic_url instead of _path for UV data-uri
Browse files Browse the repository at this point in the history
  • Loading branch information
Julie Allinson committed Oct 21, 2018
1 parent a467d5e commit 40f8576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/hyrax/base/_representative_media.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<% if defined?(viewer) && viewer %>
<%= PulUvRails::UniversalViewer.script_tag %>
<div class="viewer-wrapper">
<div class="uv viewer" data-uri="<%= main_app.polymorphic_path [main_app, :manifest, presenter], { locale: nil } %>"></div>
<div class="uv viewer" data-uri="<%= main_app.polymorphic_url [main_app, :manifest, presenter], { locale: nil } %>"></div>
</div>
<% else %>
<%= media_display presenter.representative_presenter %>
Expand Down

0 comments on commit 40f8576

Please sign in to comment.