Skip to content

proposal: net/url: not escaping # in url.URL.String() #64306

@Andrew-M-C

Description

@Andrew-M-C

By url.URL's String() method, special characters will be escaped into %xx format.
However, as SPA URL use # as a routing hash identifier, # should not be escaped.

Playground

Is it possible to provide another method to encode URL without escaping # in path field?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions