PolymerElements / iron-location

A Polymer element that manages binding to the page's URL.
22 stars 41 forks source link

Feature request : encode spaces as pluses (+) #104

Closed karolchmist closed 6 years ago

karolchmist commented 6 years ago

Description

Currently the spaces in the URL are encoded as %20. It would be useful to be able to replace them with pluses (+). Many services do it as it's more pleasant to read (Google included).

To maintain current functionality, it would be optional and enabled with an attribute.

PR will follow.

Expected outcome

{'foo': 'value with spaces'} =>   '?foo=value+with+spaces'

Actual outcome

{'foo': 'value with spaces'} =>   '?foo=value%20with%20spaces'