niksite/url-normalize

Equal sign being encoded inside fragment

dbertouille opened this issue · 0 comments

It appears that characters inside a URL fragment are being unnecessarily encoded.

For example, when running a Google Sheets URL that links to a specific sheet, the resulting URL encodes '=' to '%3D'. When visiting the URL, it no longer links to the desired sheet.

>>> import url_normalize
>>> url_normalize.url_normalize('https://docs.google.com/spreadsheets/d/abcd/edit#gid=1234')
'https://docs.google.com/spreadsheets/d/abcd/edit#gid%3D1234'