Skip to content

Commit a24d153

Browse files
Shushant SinghPrabhakar Kumar
authored andcommitted
URI Encodes MRE parameter to fix issue related to opening external links in New Desktop Beta.
1 parent a55666b commit a24d153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gui/src/components/App/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function App () {
162162
const htmlToRenderMATLAB = () => {
163163
let theHtmlToRenderMATLAB = useMOS ? 'index-matlabonlineserver.html' : 'index-jsd-cr.html';
164164
if (useMRE) {
165-
theHtmlToRenderMATLAB += `?mre=${fullyQualifiedUrl}`;
165+
theHtmlToRenderMATLAB += `?mre=${encodeURIComponent(fullyQualifiedUrl)}`;
166166
}
167167
return theHtmlToRenderMATLAB;
168168
};

0 commit comments

Comments
 (0)