Merge pull request #4556 from influxdata/fixes/encode-help-url

Encode github issue url
pull/4559/head
Brandon Farmer 2018-10-05 13:08:17 -07:00 committed by GitHub
commit eb048f5a06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,9 @@ class DefaultError extends Component<{error: Error}> {
const {stack, message} = error
const finalMessage = ` Chronograf (${VERSION}) ${message}`
const finalStack = '```' + stack + '```'
const href = `https://github.com/influxdata/chronograf/issues/new?title=${finalMessage}&body=${finalStack}`
const href = encodeURI(
`https://github.com/influxdata/chronograf/issues/new?title=${finalMessage}&body=${finalStack}`
)
return (
<p className="unexpected-error">