Skip to content

Update value as empty string for OSD Icon path prefixUrl #1819

Open
HussainVAM wants to merge 1 commit into
UniversalViewer:release-4.4from
HussainVAM:hotfix-osd-control-icon-path-prefixurl
Open

Update value as empty string for OSD Icon path prefixUrl #1819
HussainVAM wants to merge 1 commit into
UniversalViewer:release-4.4from
HussainVAM:hotfix-osd-control-icon-path-prefixurl

Conversation

@HussainVAM

Copy link
Copy Markdown
Contributor

Fixes an issue where control icons in OSD Center panel were using a url prefix path of '/images/' on a base64 encoded transparent pixel causing a 404 error on control icon image tags.
Described in this issue here https://github.com/UniversalViewer/universalviewer/issues/17893
#17893

OSD docs for prefixUrl here https://openseadragon.github.io/docs/openseadragon.js.html#:~:text=Finally%20the%0A%20%20*%20%20%20%20%20image,through%20this%20setting

Bug seamed to appear after OSD v6 upgrade where this value was changed from null to undefined triggering the default value to be used. 45d8b9c#diff-9a1d014d237071dac5bf1e798e67c9c2bcda2060d8be4ee978a87e0a68f9a954R283

@demiankatz demiankatz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me, and tests are passing!

@jamesmisson, do you want to look at this further before it is merged?

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