• FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    1 day 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
      ·
      1 day 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.