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!

  • @[email protected]
    link
    fedilink
    English
    31 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