Skip to content

net/url: URL.String() hashbang "#!" encodes as "#%21" #19917

@dragonsinth

Description

@dragonsinth

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

1.7.4

What did you do?

https://play.golang.org/p/R-4KVNXa9Z

        u, _ := url.Parse("http://example.org/#!wut")
	fmt.Println(u.String())

What did you expect to see?

http://example.org/#!wut

What did you see instead?

http://example.org/#%21wut

Extra info

#6784
#5684

Looks like the first issue was marked a duplicate of the second, but the underlying problem was never fixed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions