Use new URLEncoding in rendered querystring preview as well

This commit is contained in:
Gregory Schier 2016-09-22 12:47:22 -07:00
parent fe71063938
commit df3e3c52e3

View File

@ -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);
}