• DrCake@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      5 hours ago

      What would be the right fix? This seems reasonable without having to change loads of their onboarding flows/logic

      • FizzyOrange@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        3 hours ago

        It’s a little hard to tell what they are trying to achieve tbh, but generally GET requests should not change any state. Avoiding stuff like this is one of the big reasons why!

        If they’re trying to track some value through a sign-up process generally the solution is with a query parameter. E.g. that’s how log-in flows return you to the page you were trying to access - they have a next parameter.

        • bitfucker@programming.dev
          link
          fedilink
          arrow-up
          2
          ·
          2 hours ago

          Yeah, I agree that their solution is a bit wack. I still don’t get what they are trying to achieve by storing the query param inside localStorage first instead of just POST-ing it as needed when sign up.