You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I try to request a page by its title, but it has space in it so this title spaces are translated to "+" by Confluence which is URL encoded to "%2B" by the SDK, but the API does not understand it.
https://my-confluence-instance.lan/rest/api/content?title=My+Page => ok https://my-confluence-instance.lan/rest/api/content?title=My%2BPage => nok
Describe the solution you'd like
Add a parameter in GetContent to tell it to URL encode the params or just "stringify" it. I will send a PR for that.
Describe alternatives you've considered
To make it work for my needs, I chained directly the params with a simple fmt.Sprintf and put it in the url.URL.RawQuery
Additional context
From my Confluence instance manifest:
Is your feature request related to a problem? Please describe.
I try to request a page by its title, but it has space in it so this title spaces are translated to "+" by Confluence which is URL encoded to "%2B" by the SDK, but the API does not understand it.
https://my-confluence-instance.lan/rest/api/content?title=My+Page
=> okhttps://my-confluence-instance.lan/rest/api/content?title=My%2BPage
=> nokDescribe the solution you'd like
Add a parameter in
GetContent
to tell it to URL encode the params or just "stringify" it. I will send a PR for that.Describe alternatives you've considered
To make it work for my needs, I chained directly the params with a simple
fmt.Sprintf
and put it in theurl.URL.RawQuery
Additional context
From my Confluence instance manifest:
The text was updated successfully, but these errors were encountered: