sonnyp / Junction

Application/browser chooser
https://flathub.org/apps/re.sonny.Junction
GNU General Public License v3.0
457 stars 28 forks source link

fix: do not decode encoded URLs #142

Closed pdecat closed 6 months ago

pdecat commented 6 months ago

This PR avoids breaking URLs where some query string parameters are URL encoded.

Without this change, such URLs are altered, e.g.:

is passed to the browser as:

This alteration breaks some links such Amazon package tracking links received by email.

To fix this, this PR makes use of the [G_URI_FLAGS_ENCODED](https://docs.gtk.org/glib/flags.UriFlags.html#encoded) flag.

sonnyp commented 6 months ago

Feel free to add yourself to contributors in about.js too

pdecat commented 6 months ago

Done, thanks @sonnyp! :rocket: