url-normalize icon indicating copy to clipboard operation
url-normalize copied to clipboard

Equal sign being encoded inside fragment

Open dbertouille opened this issue 6 months ago • 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'

dbertouille avatar Jan 13 '24 18:01 dbertouille