drodil / backstage-plugin-toolbox

Most commonly used developer tools within Backstage
MIT License
46 stars 25 forks source link

Add URL Encoder/Decoder Toggle to be able to encore all #96

Open pleroux-bell opened 6 months ago

pleroux-bell commented 6 months ago

The URL Encoder/Decoder is currently using the encodeURI(uri) or decoderURI(uri) function which doesn't cover ; / ? : @ & = + $ , #.

This is to add a toggle to that Tool to be able to switch between encodeURI(uri) and encodeURIComponent(uri) also doing the same for decoding: decodeURI(uri) -> decodeURIComponent(uri) so it will cover those characters as well.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent