-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.
Milestone
Description
The html/template context stateURL appears to be percent encoding valid characters. I believe this is because shouldEscape() in net/url encodes these characters by default: https://github.com/ecosia/go/blob/master/src/net/url/url.go#L101
RFC3986 allows for the use of ( and ) characters in the query component: https://tools.ietf.org/html/rfc3986#section-3.4
- What version of Go are you using (
go version)?
1.6.2 - What operating system and processor architecture are you using (
go env)?
linux/amd64 - What did you do?
Create a template with a variable to be used for thehrefattribute. Pass a URL including(or)to the template and compile.(and)are percent encoded during compilation.
An example on play.golang.org: https://play.golang.org/p/QFtR42GyfI - What did you expect to see?
<a href="http://my.domain/path-to-lang(en)">Click this link.</a> - What did you see instead?
<a href="http://my.domain/path-to-lang%28en%29">Click this link.</a>
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.