Click a link and need to go back 10x to get back. Yes, I enjoy the footballs.

  • ilinamorato@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    I don’t know about “easily.” replaceState() is actually intended to make single-page apps easier to use, by allowing you to use your back button as expected even when you’re staying on the same URL the entire time.

    Likewise, single-page apps are intended to be faster and more efficient than downloading a new static page that’s 99.9% identical to the old one every time you change something.

    Fixing this bad experience would eliminate the legitimate uses of replaceState().

    Now, what they could do is track your browser history “canonically” and fork it off whenever Javascript alters its state, and then allow you to use a keyboard shortcut (Alt + Back, perhaps?) to go to the “canonical” previous item in history instead of to the “forked” previous item.

    • deejay4am@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 month ago

      Pop a window open with a your app in it (with the user’s permission) without a back button if you want that.

      A web page should be a document, not an experience.

    • SplashJackson@lemmy.ca
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      I can handle life without the legitimate use case if it means no more clickjacking bs from companies that should know better

      • ilinamorato@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month ago

        I’d prefer not to let the bad actors dictate browser design.

        “Let’s get rid of images since companies can use images to spoof browserchrome elements.”

        “Let’s get rid of text since scammers can pretend to be sending messages from the computer’s operating system.”

        “Let’s get rid of email since phishing exists.”

        Nah. We can do some stuff (like the aforementioned forked history) to ameliorate the problem, and if it’s well-known enough, companies won’t find it necessary anymore. Heck, browsers like Firefox would probably even let you select Canonical Back as the default Back Button behavior, and then you can have the web the way you want it (like people who disable Javascript).

        • ggppjj@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 month ago

          I’m frustrated that removing bad functionality is being treated as a slippery slope with obviously bad and impossible jokes as the examples chosen.

          I see a bad feature being abused, and I don’t see the removal of that bad feature as a dangerous path to getting rid of email. I don’t ascribe the same weight that you seem to towards precedent in this matter.