This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Wrong HTTP request building when variable contains array (or object) #7385
Closed
Description
Please turn on console and run this plunker: http://plnkr.co/edit/xGqtovSsNOYFGm9XzLsr?p=info
then in Network
tab look at request. It will be:
/api/resource?fields=ID&fields=Name
when should be
fields%5B0%5D=ID&fields%5B1%5D=Name
If we will try to replace array with an object, result will be even worse:
http://plnkr.co/edit/pdvvUk9HCVGSKPwz7S3m
/api/resource?fields=%7B%220%22:%22ID%22,%221%22:%22Name%22%7D
decoded it looks:
/api/resource?fields={"0":"ID","1":"Name"}
If there is any workaround for this issue, please let me know.