Skip to content

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

@lawerencem

Description

@lawerencem

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.

  • /foo/images/small-icon.png
  • /foo/images/medium-icon.png

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions