From df3e3c52e3aec7469ac07e593f4867cef317049f Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Thu, 22 Sep 2016 12:47:22 -0700 Subject: [PATCH] Use new URLEncoding in rendered querystring preview as well --- app/ui/components/RenderedQueryString.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/ui/components/RenderedQueryString.js b/app/ui/components/RenderedQueryString.js index d87634147..66dbe65c8 100644 --- a/app/ui/components/RenderedQueryString.js +++ b/app/ui/components/RenderedQueryString.js @@ -1,6 +1,7 @@ import React, {PropTypes, Component} from 'react'; import {getRenderedRequest} from 'backend/render'; import * as querystring from 'backend/querystring'; +import util from 'backend/util'; class RenderedQueryString extends Component { @@ -17,7 +18,7 @@ class RenderedQueryString extends Component { getRenderedRequest(props.request).then(({url, parameters}) => { const qs = querystring.buildFromParams(parameters); const fullUrl = querystring.joinURL(url, qs); - this.setState({string: fullUrl}); + this.setState({string: util.prepareUrlForSending(fullUrl)}); }); }, delay ? 300 : 0); }