Skip to content

[API] Encode URI before doing URL substitutions #2394

Closed
@mnquintana

Description

@mnquintana

I'm trying to connect to a remote API that requires a query string with characters that need to be properly URI-encoded. I discovered that Semantic UI's API behavior module currently doesn't URI encode the url settings at all, which is a bit of an issue, because I can't encode the query string myself since I need to use a URL substitution to capture the user's query (if I do, it'll try to encode the curly brackets from {query}, which will cause URL substitution to be skipped. Would it be possible to URI encode the url before performing the substitutions?

(I'm on the next branch)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions