overhangio / tutor-mfe

This plugin makes it possible to easily add micro frontend (MFE) applications on top of an Open edX platform that runs with Tutor.
GNU Affero General Public License v3.0
22 stars 95 forks source link

fix: escape space in platform name #59

Closed ghassanmas closed 2 years ago

ghassanmas commented 2 years ago

tutor-mfe set SITE_NAME env variable of mfe to equal PLATFORM_NAME config value, however in case it has a space, this would result SITE_NAME to be empty. This change prefix space with \ as, i.e My Site becaomse My\ Site. Before this might not has been issued because all values were wrapped with ' hence #56

To test this change (you have to be in production mode)