blindsidenetworks / mattermost-plugin-bigbluebutton

BigBlueButton plugin for Mattermost :electric_plug:
Apache License 2.0
89 stars 43 forks source link

not work then mattermost under location #71

Closed agrisvv closed 2 years ago

agrisvv commented 4 years ago

Mattermost are under location https://domain.com/mattermost plugins wants to acccess https://domain.com/plugins/bigbluebutton/create

need to change line:

  this.url = '/plugins/bigbluebutton';

to something like:

 this.getBaseRoute() + '/plugins/bigbluebutton'
ghost commented 4 years ago

@agrisvv HI, thanks for reporting the issue. This is directly related to https://github.com/mattermost/mattermost-server/issues/14106 and can be fixed with relative ease. Can you confirm that you set the SiteURL setting in your Mattermost as https://<your-domain>/mattermost ?

agrisvv commented 4 years ago

"SiteURL": "https://domain.com/mattermost" also was try with slash at end - not helped. now plugin work if i change line from /plugins to /mattermost/plugins in JS

grisuthedragon commented 4 years ago

I had the same problem in my setup. I use as well the mattermost as subpath. At the moment, I patch the plugin and compile ist myself.:

sed -i -e 's#/plugins/bigbluebutton#/mattermost/plugins/bigbluebutton#g' webapp/client/client.js
make build

But it would be better to read the suburl from the mattermost config in the client as well.

rottaran commented 4 years ago

I have used following javascript code in webbapp/client/client.js. It assumes that the mattermost URL always ends in /TEAMNAME/channels/CHANNELNAME. I do not know whether this is always the case where this plugin can get activated.

this.url = '/' + window.location.pathname.split('/').slice(1,-3).join('/') + '/plugins/bigbluebutton';
harshilsharma63 commented 2 years ago

@agrisvv @rottaran @grisuthedragon this is fixed in the newer releases. Please upgrade to the latest plugin version. Feel free to re-open this issue if it still doesn't work for you.