Fix button 'Open BigBlueButton Tablet app' for meeting with whitespace in its name (#19201)

This commit is contained in:
Gustavo Trott 2023-11-23 13:03:24 -03:00 committed by GitHub
parent 3e4e0e03a0
commit e6a7e2197f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,9 @@ class MobileAppModal extends Component {
}
render() {
const { intl, isOpen, onRequestClose, priority, } = this.props;
const {
intl, isOpen, onRequestClose, priority,
} = this.props;
const { url, urlMessage, meetingName } = this.state;
return (
@ -121,7 +123,7 @@ class MobileAppModal extends Component {
color="primary"
disabled={url === ''}
label={intl.formatMessage(intlMessages.openApp)}
onClick={() => window.open(`${BBB_TABLET_APP_CONFIG.iosAppUrlScheme}://${meetingName}/${encodeURIComponent(url)}`, '_blank')}
onClick={() => window.open(`${BBB_TABLET_APP_CONFIG.iosAppUrlScheme}://${encodeURIComponent(meetingName)}/${encodeURIComponent(url)}`, '_blank')}
role="button"
size="lg"
/>