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

Fixed Permalink: repeated params whith useAnchor=false #76

Merged
merged 2 commits into from
Sep 19, 2013

Conversation

buche
Copy link
Contributor

@buche buche commented Jun 28, 2013

Permalink with useAnchor=false uses ? instead of # as delimiter between
base URL and parameters. But the parameters are added twice ore more if
Permalink is clicked again.
Fixes #55
Fixes #73

buche added 2 commits June 28, 2013 11:44
Permalink with useAnchor=false uses ? instead of # as delimiter between
base URL and parameters. But the parameters are added twice ore more if
Permalink is clicked again.
The reason is: space characters of layer names get coded to %20 in a
permalink-URL. So the names do not match any more and the first
(default?) layer is choosen. Same happens for other special characters.
Fixed it with decodeURI().
@buche
Copy link
Contributor Author

buche commented Jun 28, 2013

Sorry, the second commit belongs to another issue (#57) Looks like I'm still not able to create a pull request with only one commit.

brunob added a commit that referenced this pull request Sep 19, 2013
Fixed Permalink: repeated params whith useAnchor=false + layer contains space char is ignored ; fix #55, fix #57 and fix #73
@brunob brunob merged commit b6715f9 into shramov:master Sep 19, 2013
@brunob
Copy link
Collaborator

brunob commented Sep 19, 2013

Thanks for the fixes @buche :)

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.

URL parameter concatenated Permalink: repeated params whith useAnchor=false
2 participants