99designs / 99designs/gqlgen

gqlgen converting the special chars to unicode breaking the frontend

未关闭
#3,046 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
10.8k
派生
1.3k
平均合并
2 天 36 分钟
30 天内合并 PR
26

描述

### What happened?
```go
func (r *mutationResolver) OauthRequest(ctx context.Context, typeArg string) (string, error) {
return "http://test.com?name=jane&lastname=doe", nil
}
```
It returns the URL and converts the `&` to Unicode chars. I have frontend app where we return this URL and redirect to the below URL but URL is considered as broken
```
http://test.com?name=jane\u0026lastname=doe
```

### What did you expect?
It should return `http://test.com?name=jane&lastname=doe` so I can redirect the same.

Note: We do not have permission on frontend to add custom code so we are not able to decode this on frontend

### Minimal graphql.schema and models to reproduce

### versions
- `go run github.com/99designs/gqlgen version`: v0.17.45
- `go version`: go version go1.22.2 darwin/arm64

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。