Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix getLegendGraphicUrl to not append multiple questionmarks in OL4 #19

Merged
merged 1 commit into from
Sep 5, 2018

Conversation

weskamm
Copy link
Member

@weskamm weskamm commented Sep 5, 2018

title says it all

@weskamm weskamm merged commit 8301012 into terrestris:ol4 Sep 5, 2018
@@ -330,7 +330,7 @@ export class MapUtil {
const queryString = UrlUtil.objectToRequestString(
Object.assign(params, extraParams));

return `${url}?${queryString}`;
return url.endsWith('?') ? `${url}${queryString}` : `${url}?${queryString}`;
Copy link
Member

@marcjansen marcjansen Sep 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about an URL like this:

var url = 'https://example.com/my-mapserver?map=foo.map'

I think this isn't not handled correctly right now, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. PR is welcome as this is already merged :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants