Closed mattermod closed 1 year ago
I tried to work on this, created a custom slash command and returned a response with a relative path and it worked perfectly on the webapp. I'm not sure if I understood what is the expectation here.
Hi @rdsedmundo,
Thanks for you interest in this issue. :+1:
"Relative URLs" in this context refer to relativ URLs that point to a plugin like /plugins/github/some/path
not generic relative URLs. Does this make it more clear?
I'm sorry, but no, this didn't help at all. From what I can tell I'm already able to set up a path in the format /plugins/github/some/path
.
Good catch, I didn't noticed this is already possible. A couple of edge cases that might not work yet are:
plugins/github/some/path
should also work/plugins/github/some/path
should workplugins/github/some/path
should workWould you be interested in checking if these cases are also already fixed?
This should be solved.
Integrations using slash command can overwrite the icon of the created post. This is done by setting
IconURL
in the slash command response. This field should report a relative URL, e.g./plugins/github/some/path
to make plugin responses independent of thesiteURL
. For more information about slash commands see https://docs.mattermost.com/developer/slash-commands.html#custom-slash-command.This needs to be changed on both the webapp and mobile app.
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.
JIRA: https://mattermost.atlassian.net/browse/MM-21593