God I hate this! Never fails, either. I’d be on a page of someone’s profile or some piece of content I’d like to see but I’m required to log in. Okay, I will do so. So I do and it doesn’t redirect me back! It just puts me in the front page, like no thanks, just bring me to where I was!

  • redcalcium@c.calciumlabs.com
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 year ago

    Went to hackernews the other day. Tried to upvote a comment, then it asked me to login. Put in my login, hit the button, and boom, it redirected back to the original page, and the comment I was attempting to upvote is successfully upvoted! I was expecting I’ll need to press the upvote button again, but I don’t even need to do that. My mind was blown. Wish more websites do this.

    • tryagain@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      It’s a great predictor of how the rest of your interaction with a site will go. If a dev doesn’t have the space and motivation to give a shit about details like this, they’ll cut corners on other shit too. It doesn’t always mean they’re bad developers; more often they’re just rushed.

  • intensely_human@lemm.ee
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    Oh my god it’s fucking horrible. And so straightforward to fix.

    • oh noes! unauthorized!
    • store current path in a session variable
    • redirect to authentication
    • upon successful authentication, check if that session variable’s got a path in it
    • if it does, redirect to that