Unstable URL after I switch style
publié le , mis à jourDécrivez votre problème, votre suggestion
After I selected a new style (any style), URL flicks from one value to another.
I can reproduce the bug whenever I repeat this action
Système d'exploitation
Ubuntu 26.04
Navigateur
Firefox
<video src="https://codeberg.org/attachments/a2763703-8a72-4bb7-b1a5-f319a13a9876" title="Screencast From 2026-09-05 09-46-51" controls></video>
esmenard
I'm also on Ubuntu 26.04 and Firefox and I don't have this issue, weird... Does it happen only when switching to satellite, or with any style?
n4n5
Looks similar to https://codeberg.org/cartes/web/issues/2887
nuxper
It's not specific to satellite. I can give you additional logs if you tell me how.
n4n5
@nuxper wrote in https://codeberg.org/cartes/web/issues/2929#issuecomment-22381747:
It's not specific to satellite. I can give you additional logs if you tell me how.
The things is, I'm not sure we have logs activated for this.
On my side, I cannot reproduce on my firefox
Can you reproduce it, why a clean browser (no cache, private mode) ? and with a normal style ? and with no OSM/blusky connection ?
It would be great if I/we can reproduce this !
Note:
- helpful recorder : https://gifcap.dev/
laem
Could you try in private mode without plugins ?
nuxper
I also get some unstable url in private mode.
I noticed that it sometimes stop after a period of time.
nuxper
ok it seems due to an extension that was enabled even in private mode : https://addons.mozilla.org/en-US/firefox/addon/clearurls/
I'll test more
laem
Ah, yes obviously. Thanks for the mention. @severo, same cause ?
Some extension are quite agressive, we're suffering from it. Added to https://codeberg.org/cartes/web/issues/821
severo
I confirm it's the same cause. Ideally, I would like to keep using this extension.
laem
I don't think we're doing something wrong. Lots of website must be broken because of it, or I'm missing something.
n4n5
@severo wrote in https://codeberg.org/cartes/web/issues/2929#issuecomment-22532284:
I confirm it's the same cause. Ideally, I would like to keep using this extension.
We will need to know what is triggering the extension (by recording the
window.locationobject). The extension does not like something in the URL, maybe a coord or a word ?esmenard
Probably the parameter
stylein the URLEDIT: in fact it seems like the problematic parameter is rather
choix du style. If I go to https://cartes.app/?choix%20du%20style=oui with ClearURLs enabled, Cartes.app systematically crashes when I start moving the map.EDIT 2: I think I understand where the issue comes from. The URL for choosing a map style is https://cartes.app/?choix+du+style=oui, but ClearURLs turns it into the URL above, then Cartes.app turns it back until the normal one and it eventually crashes because of too many requests to rewrite the history. One option would be to call the URL parameter
choix_du_styleinstead ofchoix+du+style: according to their cleaning tool this one stays the same.