Skip to content

absolute_url corrupts url escaping it #26

@mdesantis

Description

@mdesantis

I have an URL like this: https://www.example.com/path?query_param=N%2CU. absolute_url method:

def absolute_url(url, base:)
return unless url
URI.join(base, URI.escape(url)).to_s
end

escapes it so it becomes https://www.example.com/path?query_param=N%252CU, corrupting the URL and breaking the spider link following. What about adding an argument to absolute_url in order to skip escaping?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions