Equal sign is added to end of empty query string variable
See original GitHub issue> normalize_url('example.com/?a');
http://example.com/?a=
> (new URL('http://example.com/?a')).toString()
http://example.com/?a
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Equals sign (=) added after valueless query string parameters
This issue is caused by how Glass Mapper generates URLs with its UrlBuilder: public override string ToString() { StringBuilder sb = new ...
Read more >reactjs - Is there any way to remove equal sign at the only key ...
I use the valueless query string parameter, but if I move to another page(routing), the url changed with added new equal sign to...
Read more >Rewrite as URL adding equals sign to end of url. - Drupal
I believe parse_str() is the wrong function to use, because it does not distinguish between valueless query parameters ( ?foo ) and query ......
Read more >Formulas—ArcGIS Survey123 | Documentation
The min() and max() functions complete and ignore any empty strings. An empty text answer is equal to another empty text answer and...
Read more >Blank, Coalesce, IsBlank, and IsEmpty functions in Power Apps
Empty string refers to a string that contains no characters. The Len function returns zero for such a string and it can be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for the research @muuvmuuv.
FWIW, this affects my web app since adding
=
causes a cache-miss.So they seemed to be clear enough in the referenced issues at whatwg. This is the spec and therefore I wouldn’t implement any transformation in
normalize-url
since it should normalize it TO the spec. What do you think @sindresorhus ?