← Retour aux issues

Unstable URL after I switch style

publié le , mis à jour
Avatar Codeberg de nuxpernuxper

Dé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>

  1. Avatar Codeberg de esmenardesmenard

    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?

  2. Avatar Codeberg de nuxpernuxper

    It's not specific to satellite. I can give you additional logs if you tell me how.

  3. Avatar Codeberg de n4n5n4n5

    @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:

  4. Avatar Codeberg de laemlaem

    Yes probably the same problem as #2887. Cannot reproduce either, on my Firefox desktop. Strange, I can't see any state in your URL bar...

  5. Avatar Codeberg de laemlaem

    Could you try in private mode without plugins ?

  6. Avatar Codeberg de nuxpernuxper

    I also get some unstable url in private mode.

    I noticed that it sometimes stop after a period of time.

  7. Avatar Codeberg de nuxpernuxper

    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

  8. Avatar Codeberg de laemlaem

    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

  9. Avatar Codeberg de severosevero

    Capture d’écran du 2026-09-08 16-17-58

    Automatically removes tracking parameters from URLs

    And in #821, @laem shares https://addons.mozilla.org/fr/firefox/addon/clearurls/?utm_content=addons-manager-reviews-link&utm_medium=firefox-browser&utm_source=firefox-browser

    Ahah, this is subtle trolling

  10. Avatar Codeberg de severosevero

    I confirm it's the same cause. Ideally, I would like to keep using this extension.

  11. Avatar Codeberg de laemlaem

    I don't think we're doing something wrong. Lots of website must be broken because of it, or I'm missing something.

  12. Avatar Codeberg de n4n5n4n5

    @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.location object). The extension does not like something in the URL, maybe a coord or a word ?

  13. Avatar Codeberg de esmenardesmenard

    Probably the parameter style in the URL

    EDIT: 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_style instead of choix+du+style: according to their cleaning tool this one stays the same.


✏️ Participer à la discussion