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
Popup close button adding #close hash to URL #8159
Comments
Can confirm (firefox, linux). Doesn't happen on 1.7.0 (see https://plnkr.co/edit/TFdFTrIxdQXXOccK , make sure to open up the preview in a separate tab). Doing a |
Ah, so the source of the regression is #7439 , I see. |
Added this to the 1.8.1 milestone, looks like a regression we should fix in the next patch release. |
yes i faced this issue yesterday: Solutions: 3- Change Leaflet version from 1.7.1 to striclty 1.7.0 (saved me) |
The problem occurs since Leaflet 1.8.0 so it makes no difference if you use 1.7.1 or 1.7.0 |
I work on an app exhibiting the same behavior on leaflet 1.7.1 and changing to 1.7.0 stopped the behavior. So it does make a difference |
Can confirm the error with 1.8.0, is solved when going back to 1.7.0 |
Starting with version v1.8.0, clicking the popup close 'x' button adds #close to the URL
Behavior is reproducible on the leaflet.js website in examples with popups such as:
https://leafletjs.com/SlavaUkraini/examples/quick-start/example.html
Previous to v1.8.0 clicking the popup close button prevented #close hash from being added to the URL
Not ideal for Single Page Applications that rely on hash routing.
The text was updated successfully, but these errors were encountered: