From d3784b4925496a08dd8f7ab175db3f0b83b8cc3f Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Tue, 7 Nov 2017 12:33:38 +0000 Subject: [PATCH] Fix URL parameter encoding. --- src/components/views/elements/AppTile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/elements/AppTile.js b/src/components/views/elements/AppTile.js index c5a5575cf4..54deae7ef3 100644 --- a/src/components/views/elements/AppTile.js +++ b/src/components/views/elements/AppTile.js @@ -144,10 +144,10 @@ export default React.createClass({ // Append scalar_token as a query param if not already present this._scalarClient.scalarToken = token; const u = url.parse(this.props.url); - const params = qs.parse(u.search); + const params = qs.parse(u.query); if (!params.scalar_token) { params.scalar_token = encodeURIComponent(token); - u.search = qs.stringify(params); + u.query = qs.stringify(params); } this.setState({