ozoneplatform / owf-framework

OZONE Widget Framework
http://ozoneplatform.org
Apache License 2.0
329 stars 143 forks source link

Relative URLs for Small & Medium Icon URLs in widget definitions are used inconsistently. #106

Open lawerencem opened 6 years ago

lawerencem commented 6 years ago

The Small Icon URL used within the OWF Admin Widgets is relative to the OWF root, not the host root when a relative path is used. However, the Medium Icon URL used for the App Component tray is relative to the host root.

Assume the following images exist under the /Foo application on the same server as OWF.

Creating a widget for the Foo application may utilize the following widget settings:

Name: Foo URL: /foo/index.html Small Icon URL: /foo/images/small-icon.png Medium Icon URL: /foo/images/medium-icon.png

OWF turns the small icon into "https://my-host/owf/foo/images/small-icon.png" This is incorrect and the small icon will not appear in any of the admin widgets.

OWF turns the medium icon into "https://my-host/foo/images/medium-icon.png". This is correct and the medium icon will appear in the App Components tray.

This behavior is inconsistent.