You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the urlescape filter is using url.QueryEscape and not url.PathEscape.
You might have PHP roots where urlencode is used, but url.QueryEscape is not the proper replacement as is encodes QUERIES not PATHS.
An URL has paths and queries.
There should be pathEscape and queryEscape and for compatibility reasons urlescape should be using url.PathEscape, in the long run urlescape should be deprecated.
Why? Because if you use QueryEscape to encode a PATH you will receive wrong results
The text was updated successfully, but these errors were encountered:
the urlescape filter is using url.QueryEscape and not url.PathEscape.
You might have PHP roots where urlencode is used, but url.QueryEscape is not the proper replacement as is encodes QUERIES not PATHS.
An URL has paths and queries.
There should be pathEscape and queryEscape and for compatibility reasons urlescape should be using url.PathEscape, in the long run urlescape should be deprecated.
Why? Because if you use QueryEscape to encode a PATH you will receive wrong results
The text was updated successfully, but these errors were encountered: