Plugins may expose custom assets via the assets directory, but must then combine the SiteURL and their plugin ID to build the resulting path. Let鈥檚 simplify this in the plugin helpers with a GetPluginAssetURL(asset string) that builds a URL to the requisite resource.
Note that this is distinct from the GetBundlePath present in the API, that returns a filesystem path to the asset in question.
If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.
New contributors please see our Developer's Guide.
@mattermod @hanzei I would like to work on this.
Thanks @Lumexralph :+1:
@hanzei I need to ask some questions, who should I reach out to?
Me :wink: How can I help?
@hanzei Can I reach out to you in the Mattermost workspace? It would be convenient for me, hope it's okay by you?
Most helpful comment
@mattermod @hanzei I would like to work on this.